UNPKG

connect-sdk-nodejs

Version:

SDK to communicate with the Worldline Global Collect platform using the Worldline Connect Server API

9 lines (8 loc) 617 B
/// <reference types="node" /> /// <reference types="node" /> import * as http from "http"; import * as https from "https"; import { MultipartFormDataObject, SdkContext } from "../model"; export declare type ConnectionCallback = (e: Error | null, res: http.IncomingMessage | null) => void; export declare function sendJSON(options: https.RequestOptions, postData: object | undefined | null, context: SdkContext, cb: ConnectionCallback): void; export declare function sendMultipart(options: https.RequestOptions, postData: MultipartFormDataObject, boundary: string, context: SdkContext, cb: ConnectionCallback): void;