WebhooksModule
public class WebhooksModule
Undocumented
-
Get all webhooks in an enterprise.
Declaration
Swift
public func list( marker: String? = nil, limit: Int? = nil, fields: [String]? = nil ) -> PaginationIterator<Webhook>Parameters
fieldsComma-separated list of fields to include in the response.
-
Get information about a webhook.
Declaration
Parameters
webhookIdThe ID of the webhook on which to retrieve information.
fieldsString array of fields to include in the response.
completionReturns a Webhook response object if successful otherwise a BoxSDKError.
-
Update a webhook
Declaration
Parameters
webhookIdThe ID of webhook to update
targetTypeThe type of box item that is associated with the webhook (i.e. file or folder)
targetIdThe ID of the file or folder that is the target
triggersString array of [triggers]
addressThe notification URL to which Box sends messages when monitored events occur
fieldscompletionReturns a Webhook response object if successful otherwise a BoxSDKError.
-
Create a webhook
Declaration
Parameters
targetTypeThe type of box item associated with the webhook (i.e. file or folder)
targetIdThe ID of the file or folder that is the target
triggersString array of [triggers]
addressThe notification URL to which Box sends messages when monitored events occur
fieldscompletionReturns a Webhook response object if successful otherwise a BoxSDKError.
-
Deletes a webhook.
Declaration
Swift
public func delete( webhookId: String, completion: @escaping Callback<Void> )Parameters
webhookIdThe ID of the webhook to delete.
completionReturns Void if the comment is deleted.
WebhooksModule Class Reference