UNPKG

n8n-nodes-base

Version:

Base nodes of n8n

47 lines 1.26 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.GithubApi = void 0; class GithubApi { name = 'githubApi'; displayName = 'GitHub API'; documentationUrl = 'github'; properties = [ { displayName: 'Github Server', name: 'server', type: 'string', default: 'https://api.github.com', description: 'The server to connect to. Only has to be set if Github Enterprise is used.', }, { displayName: 'User', name: 'user', type: 'string', default: '', }, { displayName: 'Access Token', name: 'accessToken', type: 'string', typeOptions: { password: true }, default: '', }, ]; authenticate = { type: 'generic', properties: { headers: { Authorization: '=token {{$credentials?.accessToken}}', }, }, }; test = { request: { baseURL: '={{$credentials?.server}}', url: '/user', method: 'GET', }, }; } exports.GithubApi = GithubApi; //# sourceMappingURL=GithubApi.credentials.js.map