UNPKG

@preprio/n8n-nodes-prepr

Version:

N8n community node package for Prepr CMS

38 lines 1.31 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.PreprApi = void 0; class PreprApi { constructor() { this.name = 'preprApi'; this.displayName = 'Prepr CMS API'; this.icon = 'file:Prepr.svg'; this.documentationUrl = 'https://docs.prepr.io/graphql-api/authorization'; this.properties = [ { displayName: 'Access Token', description: 'sss', name: 'access_token', type: 'string', typeOptions: { password: true }, default: '', hint: 'Create a access token with the following scopes `GraphQL`, `content_items`, `content_items_publish`, `content_items_delete` and connect the token to a Prepr User Account.', }, ]; this.authenticate = { type: 'generic', properties: { headers: { Authorization: '=Bearer {{$credentials.access_token}}', }, }, }; this.test = { request: { baseURL: 'https://tracking.prepr.io', url: '/zapier/validate', }, }; } } exports.PreprApi = PreprApi; //# sourceMappingURL=PreprApi.credentials.js.map