UNPKG

n8n-nodes-base

Version:

Base nodes of n8n

36 lines 957 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.OpenWeatherMapApi = void 0; class OpenWeatherMapApi { name = 'openWeatherMapApi'; displayName = 'OpenWeatherMap API'; documentationUrl = 'openweathermap'; properties = [ { displayName: 'Access Token', name: 'accessToken', type: 'string', typeOptions: { password: true }, default: '', }, ]; authenticate = { type: 'generic', properties: { qs: { appid: '={{$credentials.accessToken}}', }, }, }; test = { request: { baseURL: 'https://api.openweathermap.org/data/2.5', url: '/weather', qs: { q: 'London', }, }, }; } exports.OpenWeatherMapApi = OpenWeatherMapApi; //# sourceMappingURL=OpenWeatherMapApi.credentials.js.map