create

abstract fun create(    name: String,     targetUrl: String,     resource: String,     event: String,     filter: String?,     secret: String?,     handler: CompletionHandler<Webhook>)

Posts a webhook for the authenticated user.

Since

0.1

Parameters

name

A user-friendly name for this webhook.

targetUrl

The URL that receives POST requests for each event.

resource

The resource type for the webhook.

event

The event type for the webhook.

filter

The filter that defines the webhook scope.

secret

Secret use to generate payload signature

handler

A closure to be executed once the request has finished.