@seven.io/client
Version:
Official API client for seven
16 lines (15 loc) • 573 B
TypeScript
export type ClientOptions = {
apiKey: string;
debug?: boolean;
sentWith?: string;
signingSecret?: string;
};
export declare class Client {
protected options: ClientOptions;
static readonly BASE_URL = "https://gateway.seven.io/api";
static readonly CONTENT_TYPE_URLENCODED = "application/x-www-form-urlencoded";
constructor(options: ClientOptions);
request: <R extends any, P extends {
[p: string]: any;
} = {}>(method: "delete" | "get" | "post" | "patch", endpoint: string, payload: P, contentType?: string) => Promise<R>;
}