UNPKG

@inite/n8n-nodes-instagram-private-api

Version:
51 lines (50 loc) 1.63 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.InstagramPrivateApi = void 0; class InstagramPrivateApi { constructor() { this.name = 'instagramPrivateApi'; this.displayName = 'Instagram Private API'; this.documentationUrl = 'https://github.com/dilame/instagram-private-api'; this.properties = [ { displayName: 'Username', name: 'username', type: 'string', default: '', description: 'Instagram username', required: true, }, { displayName: 'Password', name: 'password', type: 'string', typeOptions: { password: true, }, default: '', description: 'Instagram password', required: true, }, { displayName: 'Session Data', name: 'sessionData', type: 'string', default: '', description: 'Session data managed automatically by the API. Update this after login to maintain your session.', required: false, }, ]; this.test = { request: { baseURL: 'https://www.instagram.com', url: '/', method: 'GET', }, }; } async authenticate(credentials, requestOptions) { return requestOptions; } } exports.InstagramPrivateApi = InstagramPrivateApi;