n8n/packages/nodes-base/credentials/SurveyMonkeyApi.credentials.ts

41 lines
869 B
TypeScript
Raw Normal View History

import type { ICredentialType, INodeProperties } from 'n8n-workflow';
2020-04-26 10:51:20 -07:00
export class SurveyMonkeyApi implements ICredentialType {
name = 'surveyMonkeyApi';
2020-04-26 10:51:20 -07:00
displayName = 'SurveyMonkey API';
documentationUrl = 'surveyMonkey';
properties: INodeProperties[] = [
2020-04-26 10:51:20 -07:00
{
displayName: 'Access Token',
name: 'accessToken',
type: 'string',
typeOptions: { password: true },
2020-04-26 10:51:20 -07:00
default: '',
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',
type: 'string',
2020-04-26 10:51:20 -07:00
default: '',
},
{
displayName: 'Client Secret',
name: 'clientSecret',
type: 'string',
2020-04-26 10:51:20 -07:00
default: '',
},
];
}