UNPKG

n8n-nodes-gohighlevel

Version:
31 lines (30 loc) 1.17 kB
/// <reference types="node" /> /// <reference types="node" /> /// <reference types="node" /> /// <reference types="node" /> import { GenericValue, IDataObject, IExecuteFunctions, IHookFunctions, ILoadOptionsFunctions, IN8nHttpResponse } from "n8n-workflow"; declare type TBody = FormData | GenericValue | GenericValue[] | Buffer | URLSearchParams; declare type TQueryString = IDataObject; export declare class ApiCall { private n8n; private baseURL; constructor(executeFunction: IExecuteFunctions | ILoadOptionsFunctions | IHookFunctions, baseURL: string); private httpRequestWithAuthentication; get<T extends IN8nHttpResponse>(path: string, options?: { params?: TQueryString; verbose?: boolean; }): Promise<T>; post<T extends IN8nHttpResponse>(path: string, options?: { body: TBody; verbose?: boolean; }): Promise<T>; put<T extends IN8nHttpResponse>(path: string, options?: { body: TBody; verbose?: boolean; }): Promise<T>; delete<T extends IN8nHttpResponse>(path: string, options?: { body: TBody; verbose?: boolean; }): Promise<T>; } export default ApiCall;