SurveyMonkey 凭证#
¥SurveyMonkey credentials
你可以使用以下凭据验证以下节点:
¥You can use these credentials to authenticate the following nodes:
先决条件#
¥Prerequisites
- 创建 SurveyMonkey 账户。
¥Create a SurveyMonkey account.
- 从你的 开发者控制面板 > 我的应用 更新 注册应用。
¥Register an app from your Developer dashboard > My apps.
-
有关你必须使用的作用域的信息,请参阅 必填应用范围。
¥Refer to Required app scopes for information on the scopes you must use.
支持的身份验证方法#
¥Supported authentication methods
- API 访问令牌
¥API access token
- OAuth2
相关资源#
¥Related resources
有关服务的更多信息,请参阅 SurveyMonkey API 文档。
¥Refer to SurveyMonkey's API documentation for more information about the service.
使用 API 访问令牌#
¥Using API access token
要配置此凭据,你需要:
¥To configure this credential, you'll need:
- 访问令牌:创建应用后生成。
¥An Access Token: Generated once you create an app.
- 客户端 ID:创建应用后生成。
¥A Client ID: Generated once you create an app.
- 客户端密钥:创建应用后生成。
¥A Client Secret: Generated once you create an app.
创建应用并分配相应的权限范围后,请前往“设置”>“凭据”。复制访问令牌并将其作为访问令牌添加到 n8n 中。
¥Once you've created your app and assigned appropriate scopes, go to Settings > Credentials. Copy the Access Token, Client ID, and Secret and add them to n8n.
使用 OAuth#
¥Using OAuth
要配置此凭据,你需要:
¥To configure this credential, you'll need:
- 客户端 ID:创建应用后生成。
¥A Client ID: Generated once you create an app.
- 客户端密钥:创建应用后生成。
¥A Client Secret: Generated once you create an app.
创建应用并分配相应的权限范围后:
¥Once you've created your app and assigned appropriate scopes:
- 前往应用的“设置”>“设置”。
¥Go to the app's Settings > Settings. 2. 从 n8n 复制 OAuth 重定向 URL。
¥From n8n, copy the OAuth Redirect URL. 3. 使用该 URL 覆盖应用现有的 OAuth 重定向 URL。
¥Overwrite the app's existing OAuth Redirect URL with that URL. 4. 选择“提交更改”。
¥Select Submit Changes. 5. 确保“作用域”部分包含 必填应用范围。
¥Be sure the Scopes section contains the Required app scopes.
从应用的“设置”>“凭据”中,复制客户端 ID 和客户端密钥,并将其添加到你的 n8n 凭据中。现在你可以从 n8n 选择“连接我的账户”。
¥From the app's Settings > Credentials, copy the Client ID and Client Secret and add them to your n8n credential. You can now select Connect my account from n8n.
SurveyMonkey Test OAuth Flow
此选项仅在你保留默认的 SurveyMonkey OAuth 重定向 URL 并将 n8n OAuth 重定向 URL 添加为“附加重定向 URL”时有效。
¥This option only works if you keep the default SurveyMonkey OAuth Redirect URL and add the n8n OAuth Redirect URL as an Additional Redirect URL.
必填应用范围#
¥Required app scopes
创建应用后,转到“设置”>“权限范围”。选择以下范围以使你的 n8n 凭据生效:
¥Once you create your app, go to Settings > Scopes. Select these scopes for your n8n credential to work:
- 查看调查
¥View Surveys
- 查看收集器
¥View Collectors
- 查看响应
¥View Responses
- 查看响应详情
¥View Response Details
- 创建/修改 Webhooks
¥Create/Modify Webhooks
- 查看 Webhook
¥View Webhooks
选择“更新范围”以保存更改。
¥Select Update Scopes to save them.