Created
July 20, 2018 12:52
-
-
Save anthonycrumley/f288fdfd8fa86910a240f854b36d13c4 to your computer and use it in GitHub Desktop.
SurveyMonkey and ruby_http_client
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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