Skip to content

Instantly share code, notes, and snippets.

@chrislo
Last active August 29, 2015 14:05
Show Gist options
  • Save chrislo/1af94270eba1081d8df9 to your computer and use it in GitHub Desktop.
Save chrislo/1af94270eba1081d8df9 to your computer and use it in GitHub Desktop.
Fetch a list of surveys from SurveyMonkey
response = RestClient.post(
"https://api.surveymonkey.net/v2/surveys/get_survey_list?api_key=#{KEY}",
{ fields: ["title", "date_created"] }.to_json,
'Content-Type' => 'application/json', 'Authorization' => "bearer #{TOKEN}")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment