Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Supports /api/dataset/:export-format endpoint #66

Merged
merged 5 commits into from Jan 13, 2021
Merged

Conversation

mrtc0
Copy link
Contributor

@mrtc0 mrtc0 commented Dec 25, 2020

This PR is support dataset endpoint /api/dataset/#{format} .

query = '{"type":"native","native":{"query":"SELECT * FROM orders LIMIT 1;"},"database":1}'
client.query_dataset(query: query)
# =>[{"CREATED_AT"=>"2019-02-11T21:40:27.892", "PRODUCT_ID"=>14,"USER_ID"=>1,...}]

This endpoint requires a Content-Type header for application/x-www-form-urlencoded, so I made it possible to set custom headers.

@shimoju
Copy link
Owner

shimoju commented Jan 13, 2021

Thanks!!!

@shimoju shimoju merged commit 92952b4 into shimoju:master Jan 13, 2021
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants