UNPKG

n8n-nodes-tushare

Version:
48 lines 1.57 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.TushareApi = void 0; class TushareApi { constructor() { this.name = 'tushareApi'; this.displayName = 'Tushare API'; this.documentationUrl = 'http://api.tushare.pro'; this.properties = [ { displayName: 'Token', name: 'token', type: 'string', default: '', typeOptions: { password: true, }, description: 'Your Tushare API token', }, ]; this.authenticate = { type: 'generic', properties: { headers: { 'Content-Type': 'application/json', }, }, }; this.test = { request: { baseURL: 'http://api.tushare.pro', url: '', method: 'POST', body: { api_name: 'stock_company', token: '={{$credentials.token}}', params: { offset: 0, limit: 10 }, fields: 'ts_code,com_name,com_id,chairman,manager,secretary,reg_capital,setup_date,province,city,introduction,website,email,office,business_scope,employees,main_business,exchange', }, }, }; } } exports.TushareApi = TushareApi; //# sourceMappingURL=TushareApi.credentials.js.map