UNPKG

@digitalstories/n8n-nodes-infomaniak

Version:

n8n nodes to interact with Infomaniak services (Kchat)

12 lines (11 loc) 669 B
import { IExecuteFunctions, ILoadOptionsFunctions, IDataObject } from 'n8n-workflow'; export declare abstract class ApiService { protected executeFunctions: IExecuteFunctions | ILoadOptionsFunctions; protected credentials: any; protected abstract serviceName: string; constructor(executeFunctions: IExecuteFunctions | ILoadOptionsFunctions, credentials: any); protected abstract getBaseUrl(): string; protected request(method: string, endpoint: string, body?: any, query?: IDataObject, formData?: any, headers?: IDataObject): Promise<any>; protected handleApiError(error: any): never; protected log(message: string, data?: any): void; }