UNPKG

n8n-nodes-pirate-weather

Version:

n8n node for Pirate Weather API - A free weather API alternative

42 lines 1.43 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.PirateWeatherApi = void 0; class PirateWeatherApi { constructor() { this.name = 'pirateWeatherApi'; this.displayName = 'Pirate Weather API'; this.documentationUrl = 'https://docs.pirateweather.net/en/latest/'; this.properties = [ { displayName: 'API Key', name: 'apiKey', type: 'string', typeOptions: { password: true, }, default: '', required: true, description: 'Your Pirate Weather API key. Get one for free at <a href="https://pirate-weather.apiable.io/" target="_blank">pirate-weather.apiable.io</a>', }, ]; this.authenticate = { type: 'generic', properties: { headers: { 'ApiKey': '={{$credentials.apiKey}}', }, }, }; this.test = { request: { baseURL: 'https://api.pirateweather.net', headers: { 'ApiKey': '={{$credentials.apiKey}}', }, url: '/forecast/dummy/37.8267,-122.4233', }, }; } } exports.PirateWeatherApi = PirateWeatherApi; //# sourceMappingURL=PirateWeatherApi.credentials.js.map