C# Класс Smartsheet.Api.Internal.WebhookResourcesImpl

Наследование: AbstractResources, WebhookResources
Показать файл Открыть проект

Открытые методы

Метод Описание
CreateWebhook ( Webhook webhook ) : Webhook

Creates a new Webhook.

The request body is limited to name(required), callbackUrl (required), scope (required) scopeObjectId (required), events(required), version(required)

It mirrors To the following Smartsheet REST API method:POST /webhooks

DeleteWebhook ( long webhookId ) : void

Delete a webhook.

It mirrors To the following Smartsheet REST API method: DELETE /webhooks/{webhookId}

GetWebhook ( long webhookId ) : Webhook

Gets the Webhook specified in the URL.

It mirrors To the following Smartsheet REST API method: GET /webhook/{webhookId}

ListWebhooks ( PaginationParameters paging ) : PaginatedResult

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

ResetSharedSecret ( long webhookId ) : WebhookSharedSecret

Resets the shared secret for the specified Webhook. For more information about how a shared secret is used, see Authenticating Callbacks.

The request body should be empty

It mirrors To the following Smartsheet REST API method: POST /webhooks/{webhookId}/resetsharedsecret

UpdateWebhook ( Webhook webhook ) : Webhook

Updates the Webhook specified in the URL.

The request body is limited to the name, events, callbackUrl, enabled and version attributes.

It mirrors To the following Smartsheet REST API method: PUT /webhooks/{webhookId}

WebhookResourcesImpl ( SmartsheetImpl smartsheet ) : System

Constructor. Exceptions: - IllegalArgumentException : if any argument is null

Описание методов

CreateWebhook() публичный Метод

Creates a new Webhook.

The request body is limited to name(required), callbackUrl (required), scope (required) scopeObjectId (required), events(required), version(required)

It mirrors To the following Smartsheet REST API method:POST /webhooks

if any argument is null or empty string if there is any problem with the REST API request if there is any problem with the REST API authorization (access token) if the resource cannot be found if the REST API service is not available (possibly due To rate limiting) if there is any other error during the operation
public CreateWebhook ( Webhook webhook ) : Webhook
webhook Smartsheet.Api.Models.Webhook the webhook to be created
Результат Smartsheet.Api.Models.Webhook

DeleteWebhook() публичный Метод

Delete a webhook.

It mirrors To the following Smartsheet REST API method: DELETE /webhooks/{webhookId}

if any argument is null or empty string if there is any problem with the REST API request if there is any problem with the REST API authorization (access token) if the resource cannot be found if the REST API service is not available (possibly due To rate limiting) if there is any other error during the operation
public DeleteWebhook ( long webhookId ) : void
webhookId long the sightId
Результат void

GetWebhook() публичный Метод

Gets the Webhook specified in the URL.

It mirrors To the following Smartsheet REST API method: GET /webhook/{webhookId}

if any argument is null or empty string if there is any problem with the REST API request if there is any problem with the REST API authorization (access token) if the resource cannot be found if the REST API service is not available (possibly due To rate limiting) if there is any other error during the operation
public GetWebhook ( long webhookId ) : Webhook
webhookId long the Id of the webhook
Результат Smartsheet.Api.Models.Webhook

ListWebhooks() публичный Метод

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

if any argument is null or empty string if there is any problem with the REST API request if there is any problem with the REST API authorization (access token) if the resource cannot be found if the REST API service is not available (possibly due To rate limiting) if there is any other error during the operation
public ListWebhooks ( PaginationParameters paging ) : PaginatedResult
paging Smartsheet.Api.Models.PaginationParameters
Результат PaginatedResult

ResetSharedSecret() публичный Метод

Resets the shared secret for the specified Webhook. For more information about how a shared secret is used, see Authenticating Callbacks.

The request body should be empty

It mirrors To the following Smartsheet REST API method: POST /webhooks/{webhookId}/resetsharedsecret

if any argument is null or empty string if there is any problem with the REST API request if there is any problem with the REST API authorization (access token) if the resource cannot be found if the REST API service is not available (possibly due To rate limiting) if there is any other error during the operation
public ResetSharedSecret ( long webhookId ) : WebhookSharedSecret
webhookId long the sightId
Результат Smartsheet.Api.Models.WebhookSharedSecret

UpdateWebhook() публичный Метод

Updates the Webhook specified in the URL.

The request body is limited to the name, events, callbackUrl, enabled and version attributes.

It mirrors To the following Smartsheet REST API method: PUT /webhooks/{webhookId}

if any argument is null or empty string if there is any problem with the REST API request if there is any problem with the REST API authorization (access token) if the resource cannot be found if the REST API service is not available (possibly due To rate limiting) if there is any other error during the operation
public UpdateWebhook ( Webhook webhook ) : Webhook
webhook Smartsheet.Api.Models.Webhook the webhook To update
Результат Smartsheet.Api.Models.Webhook

WebhookResourcesImpl() публичный Метод

Constructor. Exceptions: - IllegalArgumentException : if any argument is null
public WebhookResourcesImpl ( SmartsheetImpl smartsheet ) : System
smartsheet SmartsheetImpl the Smartsheet
Результат System