UNPKG

n8n-nodes-instagram-private-api-wrapped

Version:

n8n community node for Instagram automation using private API capabilities

44 lines (43 loc) 1.5 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.InstagramCredentials = void 0; class InstagramCredentials { constructor() { this.name = 'instagramApi'; this.displayName = 'Instagram API'; this.documentationUrl = 'https://github.com/tiagohintz/n8n-nodes-instagram-private-api-wrapped'; this.properties = [ { displayName: 'Session Data', name: 'sessionData', type: 'string', typeOptions: { password: true, }, default: '', required: true, description: 'Instagram session data (JSON format). Use the extract-session.sh script to obtain this data.', placeholder: '{"cookies":[...],"sessionId":"..."}', }, { displayName: 'Proxy URL', name: 'proxyUrl', type: 'string', default: '', description: 'Optional HTTP proxy URL for requests', placeholder: 'http://proxy.example.com:8080', }, ]; this.test = { request: { baseURL: 'https://www.instagram.com', url: '/', method: 'GET', }, }; } async authenticate(credentials, requestOptions) { return requestOptions; } } exports.InstagramCredentials = InstagramCredentials;