The SurveyMonkey API provides a convenient way for developers to build amazing survey solutions. With the development of the API, developers have a limitless potential to create products that make collecting, analyzing, and sharing survey data easier than ever before.
With the SurveyMonkey API, you can
The possibilities are endless with the SurveyMonkey API. With its powerful features, there is a world of solutions possible for businesses and individuals alike. Let SurveyMonkey power your data collection and analysis needs.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
survey_monkey: {
type: "app",
app: "survey_monkey",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.surveymonkey.com/v3/users/me`,
headers: {
Authorization: `Bearer ${this.survey_monkey.$auth.oauth_access_token}`,
},
})
},
})
SurveyMonkey uses OAuth authentication. When you connect your SurveyMonkey account, Pipedream will open a popup window where you can sign into SurveyMonkey and grant Pipedream permission to connect to your account. Pipedream securely stores and automatically refreshes the OAuth tokens so you can easily authenticate any SurveyMonkey API.
Pipedream requests the following authorization scopes when you connect your account:
surveys_write
surveys_read
contacts_read
contacts_write
responses_read
responses_read_detail
responses_write
webhooks_read
webhooks_write
GET
https://api.surveymonkey.com/oauth/authorize
?
client_id={{oauth.client_id}}
&
redirect_uri={{oauth.redirect_uri}}
&
state={{oauth.state}}
&
response_type=code
POST
https://api.surveymonkey.com/oauth/token
content-type: application/x-www-form-urlencoded
accept: application/json
client_id={{oauth.client_id}}
&
client_secret={{oauth.client_secret}}
&
redirect_uri={{oauth.redirect_uri}}
&
grant_type=authorization_code
&
code={{oauth.code}}