@typeform/api-client
Version:
JS SDK for Typeform API
38 lines (37 loc) • 968 B
TypeScript
import { Typeform } from './typeform-types';
export declare class Webhooks {
private _http;
constructor(_http: Typeform.HTTPClient);
create(args: {
uid: string;
tag: string;
url: string;
enabled?: boolean;
secret?: string;
verifySSL?: boolean;
}): Promise<Typeform.Webhook>;
delete(args: {
uid: string;
tag: string;
}): Promise<null>;
get(args: {
uid: string;
tag: string;
}): Promise<Typeform.Webhook>;
list(args: {
uid: string;
}): Promise<Typeform.API.Webhooks.List>;
toggle(args: {
uid: string;
tag: string;
enabled: boolean;
}): Promise<Typeform.API.Webhooks.List>;
update(args: {
uid: string;
tag: string;
url: string;
enabled?: boolean;
secret?: string;
verifySSL?: boolean;
}): Promise<Typeform.Webhook>;
}