n8n-nodes-datto-rmm
Version:
n8n node for Datto RMM integration
78 lines • 2.6 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.DattoRmmApi = void 0;
class DattoRmmApi {
constructor() {
this.name = 'dattoRmmApi';
this.extends = ['oAuth2Api'];
this.displayName = 'Datto RMM API';
this.documentationUrl = 'https://rmm.datto.com/help/en/Content/2SETUP/APIv2.htm';
this.properties = [
{
displayName: 'Grant Type',
name: 'grantType',
type: 'hidden',
default: 'password',
},
{
displayName: 'API URL',
name: 'apiUrl',
type: 'string',
default: '',
required: true,
description: 'The base URL for your Datto RMM API instance, e.g. https://pinotage-api.centrastage.net',
},
{
displayName: 'API Key',
name: 'username',
type: 'string',
default: '',
required: true,
description: 'This is your API Key from the Datto RMM user settings page',
},
{
displayName: 'API Secret Key',
name: 'password',
type: 'string',
typeOptions: {
password: true,
},
default: '',
required: true,
description: 'This is your API Secret Key from the Datto RMM user settings page',
},
{
displayName: 'Access Token URL',
name: 'accessTokenUrl',
type: 'hidden',
default: '={{$self.apiUrl.replace(new RegExp("/+$"), "")}}/auth/oauth/token',
},
{
displayName: 'Client ID',
name: 'clientId',
type: 'hidden',
default: 'public-client',
},
{
displayName: 'Client Secret',
name: 'clientSecret',
type: 'hidden',
default: 'public',
},
{
displayName: 'Authentication',
name: 'authentication',
type: 'hidden',
default: 'header',
},
{
displayName: 'Scope',
name: 'scope',
type: 'hidden',
default: '',
},
];
}
}
exports.DattoRmmApi = DattoRmmApi;
//# sourceMappingURL=DattoRmmApi.credentials.js.map