2022-07-24 08:36:17 -07:00
|
|
|
import { ICredentialType, INodeProperties } from 'n8n-workflow';
|
2020-04-26 10:51:20 -07:00
|
|
|
|
|
|
|
export class SurveyMonkeyApi implements ICredentialType {
|
|
|
|
name = 'surveyMonkeyApi';
|
2022-12-02 12:54:28 -08:00
|
|
|
|
2020-04-26 10:51:20 -07:00
|
|
|
displayName = 'SurveyMonkey API';
|
2022-12-02 12:54:28 -08:00
|
|
|
|
2020-08-17 05:42:09 -07:00
|
|
|
documentationUrl = 'surveyMonkey';
|
2022-12-02 12:54:28 -08:00
|
|
|
|
2021-06-12 09:39:55 -07:00
|
|
|
properties: INodeProperties[] = [
|
2020-04-26 10:51:20 -07:00
|
|
|
{
|
|
|
|
displayName: 'Access Token',
|
|
|
|
name: 'accessToken',
|
2021-06-12 09:39:55 -07:00
|
|
|
type: 'string',
|
2022-11-01 09:41:45 -07:00
|
|
|
typeOptions: { password: true },
|
2020-04-26 10:51:20 -07:00
|
|
|
default: '',
|
2021-11-25 09:10:06 -08:00
|
|
|
description: `The access token must have the following scopes:
|
|
|
|
<ul>
|
|
|
|
<li>Create/modify webhooks</li>
|
|
|
|
<li>View webhooks</li>
|
|
|
|
<li>View surveys</li>
|
|
|
|
<li>View collectors</li>
|
|
|
|
<li>View responses</li>
|
|
|
|
<li>View response details</li>
|
|
|
|
</ul>`,
|
2020-04-26 10:51:20 -07:00
|
|
|
},
|
|
|
|
{
|
|
|
|
displayName: 'Client ID',
|
|
|
|
name: 'clientId',
|
2021-06-12 09:39:55 -07:00
|
|
|
type: 'string',
|
2020-04-26 10:51:20 -07:00
|
|
|
default: '',
|
|
|
|
},
|
|
|
|
{
|
|
|
|
displayName: 'Client Secret',
|
|
|
|
name: 'clientSecret',
|
2021-06-12 09:39:55 -07:00
|
|
|
type: 'string',
|
2020-04-26 10:51:20 -07:00
|
|
|
default: '',
|
|
|
|
},
|
|
|
|
];
|
|
|
|
}
|