public class WebhookApi extends Object
Constructor and Description |
---|
WebhookApi() |
WebhookApi(ApiClient apiClient) |
Modifier and Type | Method and Description |
---|---|
WebhookDTO |
createWebhook(String workspaceId,
WebhookDTO body)
Create a new webhook in given workspace
|
com.squareup.okhttp.Call |
createWebhookAsync(String workspaceId,
WebhookDTO body,
ApiCallback<WebhookDTO> callback)
Create a new webhook in given workspace (asynchronously)
|
ApiResponse<WebhookDTO> |
createWebhookWithHttpInfo(String workspaceId,
WebhookDTO body)
Create a new webhook in given workspace
|
void |
deleteWebhook(String workspaceId,
Integer webhookId)
Delete a webhook
|
com.squareup.okhttp.Call |
deleteWebhookAsync(String workspaceId,
Integer webhookId,
ApiCallback<Void> callback)
Delete a webhook (asynchronously)
|
ApiResponse<Void> |
deleteWebhookWithHttpInfo(String workspaceId,
Integer webhookId)
Delete a webhook
|
ApiClient |
getApiClient() |
WebhookDTO |
getWebhook(String workspaceId,
Integer webhookId)
Get webhook by id
|
com.squareup.okhttp.Call |
getWebhookAsync(String workspaceId,
Integer webhookId,
ApiCallback<WebhookDTO> callback)
Get webhook by id (asynchronously)
|
List<WebhookDTO> |
getWebhooks(String workspaceId)
Get webhooks in given workspace
|
com.squareup.okhttp.Call |
getWebhooksAsync(String workspaceId,
ApiCallback<List<WebhookDTO>> callback)
Get webhooks in given workspace (asynchronously)
|
ApiResponse<List<WebhookDTO>> |
getWebhooksWithHttpInfo(String workspaceId)
Get webhooks in given workspace
|
ApiResponse<WebhookDTO> |
getWebhookWithHttpInfo(String workspaceId,
Integer webhookId)
Get webhook by id
|
void |
setApiClient(ApiClient apiClient) |
WebhookDTO |
updateWebhook(String workspaceId,
Integer webhookId,
WebhookDTO body)
Update a webhook
|
com.squareup.okhttp.Call |
updateWebhookAsync(String workspaceId,
Integer webhookId,
WebhookDTO body,
ApiCallback<WebhookDTO> callback)
Update a webhook (asynchronously)
|
ApiResponse<WebhookDTO> |
updateWebhookWithHttpInfo(String workspaceId,
Integer webhookId,
WebhookDTO body)
Update a webhook
|
public WebhookApi()
public WebhookApi(ApiClient apiClient)
public ApiClient getApiClient()
public void setApiClient(ApiClient apiClient)
public List<WebhookDTO> getWebhooks(String workspaceId) throws ApiException
workspaceId
- Workspace idApiException
- If fail to call the API, e.g. server error or cannot deserialize the response bodypublic ApiResponse<List<WebhookDTO>> getWebhooksWithHttpInfo(String workspaceId) throws ApiException
workspaceId
- Workspace idApiException
- If fail to call the API, e.g. server error or cannot deserialize the response bodypublic com.squareup.okhttp.Call getWebhooksAsync(String workspaceId, ApiCallback<List<WebhookDTO>> callback) throws ApiException
workspaceId
- Workspace idcallback
- The callback to be executed when the API call finishesApiException
- If fail to process the API call, e.g. serializing the request body objectpublic WebhookDTO createWebhook(String workspaceId, WebhookDTO body) throws ApiException
workspaceId
- Workspace idbody
- Webhook definitionApiException
- If fail to call the API, e.g. server error or cannot deserialize the response bodypublic ApiResponse<WebhookDTO> createWebhookWithHttpInfo(String workspaceId, WebhookDTO body) throws ApiException
workspaceId
- Workspace idbody
- Webhook definitionApiException
- If fail to call the API, e.g. server error or cannot deserialize the response bodypublic com.squareup.okhttp.Call createWebhookAsync(String workspaceId, WebhookDTO body, ApiCallback<WebhookDTO> callback) throws ApiException
workspaceId
- Workspace idbody
- Webhook definitioncallback
- The callback to be executed when the API call finishesApiException
- If fail to process the API call, e.g. serializing the request body objectpublic WebhookDTO getWebhook(String workspaceId, Integer webhookId) throws ApiException
workspaceId
- Workspace idwebhookId
- Webhook idApiException
- If fail to call the API, e.g. server error or cannot deserialize the response bodypublic ApiResponse<WebhookDTO> getWebhookWithHttpInfo(String workspaceId, Integer webhookId) throws ApiException
workspaceId
- Workspace idwebhookId
- Webhook idApiException
- If fail to call the API, e.g. server error or cannot deserialize the response bodypublic com.squareup.okhttp.Call getWebhookAsync(String workspaceId, Integer webhookId, ApiCallback<WebhookDTO> callback) throws ApiException
workspaceId
- Workspace idwebhookId
- Webhook idcallback
- The callback to be executed when the API call finishesApiException
- If fail to process the API call, e.g. serializing the request body objectpublic WebhookDTO updateWebhook(String workspaceId, Integer webhookId, WebhookDTO body) throws ApiException
workspaceId
- Workspace idwebhookId
- Webhook idbody
- Webhook definitionApiException
- If fail to call the API, e.g. server error or cannot deserialize the response bodypublic ApiResponse<WebhookDTO> updateWebhookWithHttpInfo(String workspaceId, Integer webhookId, WebhookDTO body) throws ApiException
workspaceId
- Workspace idwebhookId
- Webhook idbody
- Webhook definitionApiException
- If fail to call the API, e.g. server error or cannot deserialize the response bodypublic com.squareup.okhttp.Call updateWebhookAsync(String workspaceId, Integer webhookId, WebhookDTO body, ApiCallback<WebhookDTO> callback) throws ApiException
workspaceId
- Workspace idwebhookId
- Webhook idbody
- Webhook definitioncallback
- The callback to be executed when the API call finishesApiException
- If fail to process the API call, e.g. serializing the request body objectpublic void deleteWebhook(String workspaceId, Integer webhookId) throws ApiException
workspaceId
- Workspace idwebhookId
- Webhook idApiException
- If fail to call the API, e.g. server error or cannot deserialize the response bodypublic ApiResponse<Void> deleteWebhookWithHttpInfo(String workspaceId, Integer webhookId) throws ApiException
workspaceId
- Workspace idwebhookId
- Webhook idApiException
- If fail to call the API, e.g. server error or cannot deserialize the response bodypublic com.squareup.okhttp.Call deleteWebhookAsync(String workspaceId, Integer webhookId, ApiCallback<Void> callback) throws ApiException
workspaceId
- Workspace idwebhookId
- Webhook idcallback
- The callback to be executed when the API call finishesApiException
- If fail to process the API call, e.g. serializing the request body objectCopyright © 2019 DocDoku. All rights reserved.