Tyler Evans
Tyler Evans

Reputation: 579

SurveyMonkey API - Console issue

im trying to test the Survey Monkey api via the online test console but keep getting the following error:

https://developer.surveymonkey.com/io-docs (link)

It's asking me to enter the Authorisation:

Content-Type: Authorization: bearer %s <--- not sure where to get this from? (Access token) api_key:
JSON:

and so im getting a "errmsg": "Invalid \"Authorization\" data in request header"

Is this generated elsewhere.. or am i missing something

Upvotes: 1

Views: 534

Answers (2)

user2795643
user2795643

Reputation: 1

The authorization header works for me with bearer XXXYYYZZ. Doc here: https://developer.surveymonkey.com/mashery/requests_responses

Upvotes: 0

Miles Cederman-Haysom
Miles Cederman-Haysom

Reputation: 1134

You get the access token when you perform OAuth - select the app from your existing client credentials, hit Authorize, log into your SurveyMonkey account, and it should auto-populate the 'Access Token' field. Then copy this into the Authorization header in the form "bearer (access token)" (without the quotes or parentheses).

Cheers,

Miles

Upvotes: 1

Related Questions