gem install chartquery
export CHARTQUERY_API_KEY="YOUR_API_KEY"
ruby examples/json.rbjson.rb— call the featured endpoint and print the JSON result.binary.rb— save a binary response to a file.request.rb— call any path withrequestand handle API errors.wait_for_job.rb— start an async job and wait for its result.