UNPKG

n8n-nodes-tiktok-business-api

Version:

n8n community node for interacting with TikTok Business API

78 lines 2.65 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.TiktokBusinessOAuth2Api = void 0; class TiktokBusinessOAuth2Api { constructor() { this.name = 'tiktokBusinessOAuth2Api'; this.extends = ['oAuth2Api']; this.displayName = 'Tiktok Business OAuth2 API'; this.documentationUrl = 'https://business-api.tiktok.com/portal/docs?id=1832209711206401'; this.icon = 'file:../nodes/TiktokBusiness/tiktokbusiness.svg'; this.properties = [ { displayName: 'Client ID', name: 'clientId', type: 'string', required: true, default: '', }, { displayName: 'Client Secret', name: 'clientSecret', type: 'string', typeOptions: { password: true, }, required: true, default: '', }, { displayName: 'Scope', name: 'scope', type: 'hidden', default: '', }, { displayName: 'Grant Type', name: 'grantType', type: 'hidden', default: 'authorizationCode', }, { displayName: 'Base URL', name: 'baseUrl', type: 'hidden', default: 'https://business-api.tiktok.com/open_api/v1.3', required: true, }, { displayName: 'Authorization URL', name: 'authUrl', type: 'hidden', default: 'https://business-api.tiktok.com/portal/auth', required: true, }, { displayName: 'Access Token URL', name: 'accessTokenUrl', type: 'hidden', required: true, default: 'https://business-api.tiktok.com/open_api/v1.3/oauth/token/', }, { displayName: 'Auth URI Query Parameters', name: 'authQueryParameters', type: 'hidden', default: '=app_id={{ $self["clientId"] }}', }, { displayName: 'Authentication', name: 'authentication', type: 'hidden', default: 'body', }, ]; } } exports.TiktokBusinessOAuth2Api = TiktokBusinessOAuth2Api; //# sourceMappingURL=TiktokBusinessOAuth2Api.credentials.js.map