UNPKG

n8n-nodes-netgsm-unofficial

Version:

N8N community node for Netgsm to send SMS and voice messages API integration

53 lines (52 loc) 1.48 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.NetgsmApi = void 0; class NetgsmApi { name = 'netgsmApi'; displayName = 'NetGSM API'; documentationUrl = 'https://www.netgsm.com.tr/dokuman/'; properties = [ { displayName: 'Username', name: 'username', type: 'string', default: '', required: true, description: 'NetGSM API kullanıcı adı (Alt kullanıcı).', }, { displayName: 'Password', name: 'password', type: 'string', typeOptions: { password: true }, default: '', required: true, description: 'NetGSM API şifresi.', } ]; authenticate = { type: 'generic', properties: { body: { usercode: '={{$credentials.username}}', password: '={{$credentials.password}}', }, }, }; test = { request: { baseURL: 'https://api.netgsm.com.tr', url: '/balance/list/xml', method: 'POST', headers: { 'Content-Type': 'application/x-www-form-urlencoded', }, body: { usercode: '={{$credentials.username}}', password: '={{$credentials.password}}', tip: '1', }, }, }; } exports.NetgsmApi = NetgsmApi;