Skip to content

Instantly share code, notes, and snippets.

@anthonycrumley
Created July 20, 2018 12:52
Show Gist options
  • Save anthonycrumley/f288fdfd8fa86910a240f854b36d13c4 to your computer and use it in GitHub Desktop.
Save anthonycrumley/f288fdfd8fa86910a240f854b36d13c4 to your computer and use it in GitHub Desktop.
SurveyMonkey and ruby_http_client
require 'ruby_http_client'
class Http < SendGrid::Client
end
bearer_token = 'my token'
survey_monkey = Http.new(host: 'https://api.surveymonkey.com/v3', request_headers: {'Authorization' => "Bearer #{bearer_token}", "Content-Type" => "application/json"})
survey_monkey.users.me.get.parsed_body
survey_monkey.surveys.get.parsed_body
survey_monkey.surveys._("154147604").details.get.parsed_body
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment