2020-04-26 10:51:20 -07:00
|
|
|
import {
|
|
|
|
ICredentialType,
|
2021-06-12 09:39:55 -07:00
|
|
|
INodeProperties,
|
2020-04-26 10:51:20 -07:00
|
|
|
} from 'n8n-workflow';
|
|
|
|
|
|
|
|
export class SurveyMonkeyApi implements ICredentialType {
|
|
|
|
name = 'surveyMonkeyApi';
|
|
|
|
displayName = 'SurveyMonkey API';
|
2020-08-17 05:42:09 -07:00
|
|
|
documentationUrl = 'surveyMonkey';
|
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',
|
2020-04-26 10:51:20 -07:00
|
|
|
default: '',
|
2020-04-26 16:03:01 -07:00
|
|
|
description: `The access token must have the following scopes:</br />
|
|
|
|
- Create/modify webhooks</br />
|
|
|
|
- View webhooks</br />
|
|
|
|
- View surveys</br />
|
|
|
|
- View collectors</br />
|
|
|
|
- View responses<br />
|
2020-04-26 10:51:20 -07:00
|
|
|
- View response details`,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
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: '',
|
|
|
|
},
|
|
|
|
];
|
|
|
|
}
|