WebhookClient

interface WebhookClient

A client wrapper of the Cisco Webex Webhooks API

Since

0.1

Functions

Link copied to clipboard
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.

Link copied to clipboard
abstract fun delete(webhookId: String, handler: CompletionHandler<Void>)

Deletes a webhook by id.

Link copied to clipboard
abstract operator fun get(webhookId: String, handler: CompletionHandler<Webhook>)

Retrieves the details for a webhook by id.

Link copied to clipboard
abstract fun list(max: Int, handler: CompletionHandler<List<Webhook>>)

Lists all webhooks of the authenticated user.

Link copied to clipboard
abstract fun update(webhookId: String, name: String, targetUrl: String, handler: CompletionHandler<Webhook>)
abstract fun update(webhookId: String, name: String, targetUrl: String, secret: String?, status: String?, handler: CompletionHandler<Webhook>)

Updates a webhook by id.