Constructors
constructor
- new WebhookReceiver(apiKey: string, apiSecret: string): WebhookReceiver
Parameters
- apiKey: string
- apiSecret: string
Methods
receive
- receive(
body: string,
authHeader?: string,
skipAuth?: boolean,
): Promise<WebhookEvent> Parameters
- body: string
Optional
authHeader: string- skipAuth: boolean = false
string of the posted body