n8n-nodes-rd-station-crm
Version:
n8n community node for RD Station CRM: API v1 (private token) and API v2 (OAuth2) — contacts, deals, organizations, tasks, notes, pipelines, stages, products, custom fields, sources, campaigns, loss reasons, users, teams and a real webhook trigger.
40 lines • 1.58 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.RdStationCrmApi = void 0;
class RdStationCrmApi {
constructor() {
this.name = 'rdStationCrmApi';
this.displayName = 'RD Station CRM API';
this.icon = { light: 'file:rdStationCrm.svg', dark: 'file:rdStationCrm.dark.svg' };
this.documentationUrl = 'https://developers.rdstation.com/reference/crm-v1-token';
this.properties = [
{
displayName: 'API Token',
name: 'apiToken',
type: 'string',
typeOptions: { password: true },
default: '',
required: true,
description: 'Your private RD Station CRM user token. Find it in RD Station CRM under Settings → Integrations → API. It is sent as the "token" query-string parameter on every request.',
},
];
// The token travels as a query-string parameter, as required by the RD Station CRM v1 API.
this.authenticate = {
type: 'generic',
properties: {
qs: {
token: '={{$credentials.apiToken}}',
},
},
};
// Validates the token against the lightweight /token/check endpoint.
this.test = {
request: {
baseURL: 'https://crm.rdstation.com/api/v1',
url: '/token/check',
},
};
}
}
exports.RdStationCrmApi = RdStationCrmApi;
//# sourceMappingURL=RdStationCrmApi.credentials.js.map