require 'rest-client'
url = "https://redash.#{org_name}.co.jp/api/queries/#{query_id}/results.json"
headers = {
'Authorization': "Key #{API_KEY}",
}
res = RestClient.get(url, headers)
body = JSON.parse(res.body)
data = body['query_result']['data']
API_KEYとエンドポイントはこちら参照
Discussion