public interface WebhookResources
| Modifier and Type | Method and Description |
|---|---|
Webhook |
createWebhook(Webhook webhook)
Creates a new Webhook.
|
void |
deleteWebhook(long webhookId)
Delete a webhook.
|
Webhook |
getWebhook(long webhookId)
Gets the Webhook specified in the URL.
|
PagedResult<Webhook> |
listWebhooks(PaginationParameters paging)
Gets the list of all Webhooks that the user owns (if a user generated token was used to make the request)
or the list of all Webhooks associated with the third-party app (if a third-party app made the request).
|
WebhookSharedSecret |
resetSharedSecret(long webhookId)
Resets the shared secret for the specified Webhook.
|
Webhook |
updateWebhook(Webhook webhook)
Updates the webhooks specified in the URL.
|
PagedResult<Webhook> listWebhooks(PaginationParameters paging) throws SmartsheetException
Gets the list of all Webhooks that the user owns (if a user generated token was used to make the request) or the list of all Webhooks associated with the third-party app (if a third-party app made the request). Items in the response are ordered by API Client name, then Webhook name, then creation date.
It mirrors to the following Smartsheet REST API method: GET /webhooks
paging - the object containing the pagination parametersIllegalArgumentException - if any argument is null or empty stringInvalidRequestException - if there is any problem with the REST API requestAuthorizationException - if there is any problem with the REST API authorization (access token)ResourceNotFoundException - if the resource cannot be foundServiceUnavailableException - if the REST API service is not available (possibly due to rate limiting)SmartsheetException - if there is any other error during the operationWebhook getWebhook(long webhookId) throws SmartsheetException
Gets the Webhook specified in the URL.
It mirrors to the following Smartsheet REST API method: GET /webhooks/{webhookId}
webhookId - the Id of the webhookIllegalArgumentException - if any argument is null or empty stringInvalidRequestException - if there is any problem with the REST API requestAuthorizationException - if there is any problem with the REST API authorization (access token)ResourceNotFoundException - if the resource cannot be foundServiceUnavailableException - if the REST API service is not available (possibly due to rate limiting)SmartsheetException - if there is any other error during the operationWebhook createWebhook(Webhook webhook) throws SmartsheetException
Creates a new Webhook.
It mirrors to the following Smartsheet REST API method: POST /webhooks
webhook - the webhook to be createdIllegalArgumentException - if any argument is null or empty stringInvalidRequestException - if there is any problem with the REST API requestAuthorizationException - if there is any problem with the REST API authorization (access token)ResourceNotFoundException - if the resource cannot be foundServiceUnavailableException - if the REST API service is not available (possibly due to rate limiting)SmartsheetException - if there is any other error during the operationWebhook updateWebhook(Webhook webhook) throws SmartsheetException
Updates the webhooks specified in the URL.
It mirrors to the following Smartsheet REST API method: PUT /webhooks/{webhookId}
webhook - the webhook to updateIllegalArgumentException - if any argument is null or empty stringInvalidRequestException - if there is any problem with the REST API requestAuthorizationException - if there is any problem with the REST API authorization (access token)ResourceNotFoundException - if the resource cannot be foundServiceUnavailableException - if the REST API service is not available (possibly due to rate limiting)SmartsheetException - if there is any other error during the operationvoid deleteWebhook(long webhookId)
throws SmartsheetException
Delete a webhook.
It mirrors to the following Smartsheet REST API method: DELETE /webhooks/{webhookId}
webhookId - the webhook IdIllegalArgumentException - if any argument is null or empty stringInvalidRequestException - if there is any problem with the REST API requestAuthorizationException - if there is any problem with the REST API authorization (access token)ResourceNotFoundException - if the resource cannot be foundServiceUnavailableException - if the REST API service is not available (possibly due to rate limiting)SmartsheetException - if there is any other error during the operationWebhookSharedSecret resetSharedSecret(long webhookId) throws SmartsheetException
Resets the shared secret for the specified Webhook. For more information about how a shared secret is used, see Authenticating Callbacks.
It mirrors to the following Smartsheet REST API method: POST /webhooks/{webhookId}/resetsharedsecret
webhookId - the webhook IdIllegalArgumentException - if any argument is null or empty stringInvalidRequestException - if there is any problem with the REST API requestAuthorizationException - if there is any problem with the REST API authorization (access token)ResourceNotFoundException - if the resource cannot be foundServiceUnavailableException - if the REST API service is not available (possibly due to rate limiting)SmartsheetException - if there is any other error during the operationCopyright © 2014–2019 Smartsheet. All rights reserved.