n8n-nodes-amocrm
Version:
n8n node for amocrm Api
78 lines • 2.78 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.amocrmOAuth2Api = void 0;
class amocrmOAuth2Api {
constructor() {
this.name = 'amocrmOAuth2Api';
this.extends = ['oAuth2Api'];
this.displayName = 'AmoCRM OAuth2 API';
this.documentationUrl = 'https://amocrm.ru/developers';
this.icon = 'file:amocrm_logo.svg';
this.properties = [
{
displayName: 'Subdomain',
name: 'subdomain',
type: 'string',
default: '',
placeholder: 'mycompany',
description: 'Just subdomain. Without .amocrm.ru.',
required: true,
},
{
displayName: 'Grant Type',
name: 'grantType',
type: 'hidden',
default: 'authorizationCode',
},
{
displayName: 'Authorization URL',
name: 'authUrl',
type: 'hidden',
default: 'https://www.amocrm.ru/oauth',
},
{
displayName: 'Access Token URL',
name: 'accessTokenUrl',
type: 'hidden',
default: '=https://{{$self["subdomain"]}}.amocrm.ru/oauth2/access_token',
},
{
displayName: 'Client ID',
name: 'clientId',
type: 'string',
default: '',
placeholder: '********-****-****-****-************',
description: 'ID integration from your AmoCRM account.',
required: true,
},
{
displayName: 'Client Secret',
name: 'clientSecret',
type: 'string',
default: '****************************************',
description: 'Secret key from your integration in your amocrm account',
required: true,
},
{
displayName: 'Scope',
name: 'scope',
type: 'hidden',
default: '',
},
{
displayName: 'Auth URI Query Parameters',
name: 'authQueryParameters',
type: 'hidden',
default: 'grant_type=authorization_code',
},
{
displayName: 'Authentication',
name: 'authentication',
type: 'hidden',
default: 'header',
},
];
}
}
exports.amocrmOAuth2Api = amocrmOAuth2Api;
//# sourceMappingURL=amocrmOAuth2Api.credentials.js.map