registerWebhook

fun AccountActivity.registerWebhook(    envName: String,     url: String,     vararg options: Option): JsonObjectApiAction<Webhook.Model>

Registers a webhook URL for all event types. The URL will be validated via CRC request before saving. In case the validation failed, returns comprehensive error message to the requester.

Twitter API reference

Receiver

AccountActivity endpoint instance.

Return

JsonObjectApiAction for Webhook.Model model.

Parameters

envName

Environment name.

url

Encoded URL for the callback endpoint.

options

Optional. Custom parameters of this request.