class Embulk::Input::Redash::Client
Redash
API client
Public Class Methods
get_rows(url, api_key)
click to toggle source
# File lib/embulk/input/redash/client.rb, line 8 def self.get_rows(url, api_key) res = RestClient.get(url, params: { api_key: api_key }) data = JSON.parse(res.body) data['query_result']['data']['rows'] end