abronte / BigQuery

A BigQuery wrapper
86 stars 58 forks source link

Support JSON Key file authentication #42

Closed takeyuweb closed 8 years ago

takeyuweb commented 8 years ago

For example:

client = BigQuery::Client.new(
    "project_id" => "your-project-42",
    "dataset" =>  "your_dataset",
    "json_key" => "/path/to/somekeyfile.json" # or '{"type": "service_account", ...}'
)

When testing,

project_id:    '54321'
dataset:       'yourdataset'
json_key:     '/path/to/somekeyfile.json'
faraday_option:
  timeout: 999
abronte commented 8 years ago

Thanks!