UNPKG

@cryptodevops/n8n-nodes-santiment

Version:
42 lines (41 loc) 1.27 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.SantimentApi = void 0; class SantimentApi { constructor() { this.name = 'santimentApi'; this.displayName = 'Santiment API'; this.documentationUrl = 'https://academy.santiment.net/sanapi/'; this.properties = [ { displayName: 'API Key', name: 'apiKey', type: 'string', typeOptions: { password: true }, default: '', required: true, description: 'Votre clé API Santiment. Obtenez-la sur https://app.santiment.net/account', }, ]; // Cette méthode est utilisée pour tester les credentials this.test = { request: { baseURL: 'https://api.santiment.net/graphql', method: 'POST', body: { query: `{ currentUser { id email } }`, }, headers: { 'Content-Type': 'application/json', Authorization: '=Apikey {{$credentials.apiKey}}', }, }, }; } } exports.SantimentApi = SantimentApi;