public class WebhooksApi
extends java.lang.Object
| Constructor | Description |
|---|---|
WebhooksApi() |
|
WebhooksApi(ApiClient apiClient) |
| Modifier and Type | Method | Description |
|---|---|---|
void |
deleteWebhook(java.lang.String resourceId) |
Delete a webhook by ID.
|
com.squareup.okhttp.Call |
deleteWebhookAsync(java.lang.String resourceId,
ApiCallback<java.lang.Void> callback) |
Delete a webhook by ID.
|
com.squareup.okhttp.Call |
deleteWebhookCall(java.lang.String resourceId,
ProgressResponseBody.ProgressListener progressListener,
ProgressRequestBody.ProgressRequestListener progressRequestListener) |
Build call for deleteWebhook
|
ApiResponse<java.lang.Void> |
deleteWebhookWithHttpInfo(java.lang.String resourceId) |
Delete a webhook by ID.
|
ApiClient |
getApiClient() |
|
Webhook |
getWebhook(java.lang.String resourceId) |
Get a webhook by ID.
|
com.squareup.okhttp.Call |
getWebhookAsync(java.lang.String resourceId,
ApiCallback<Webhook> callback) |
Get a webhook by ID.
|
com.squareup.okhttp.Call |
getWebhookCall(java.lang.String resourceId,
ProgressResponseBody.ProgressListener progressListener,
ProgressRequestBody.ProgressRequestListener progressRequestListener) |
Build call for getWebhook
|
Webhooks |
getWebhooks() |
Fetch a list of all webhooks.
|
com.squareup.okhttp.Call |
getWebhooksAsync(ApiCallback<Webhooks> callback) |
Fetch a list of all webhooks.
|
com.squareup.okhttp.Call |
getWebhooksCall(ProgressResponseBody.ProgressListener progressListener,
ProgressRequestBody.ProgressRequestListener progressRequestListener) |
Build call for getWebhooks
|
ApiResponse<Webhooks> |
getWebhooksWithHttpInfo() |
Fetch a list of all webhooks.
|
ApiResponse<Webhook> |
getWebhookWithHttpInfo(java.lang.String resourceId) |
Get a webhook by ID.
|
Webhook |
patchWebhook(java.lang.String resourceId,
java.util.List<PatchOperation> patchDelta) |
Modify a webhook by ID.
|
com.squareup.okhttp.Call |
patchWebhookAsync(java.lang.String resourceId,
java.util.List<PatchOperation> patchDelta,
ApiCallback<Webhook> callback) |
Modify a webhook by ID.
|
com.squareup.okhttp.Call |
patchWebhookCall(java.lang.String resourceId,
java.util.List<PatchOperation> patchDelta,
ProgressResponseBody.ProgressListener progressListener,
ProgressRequestBody.ProgressRequestListener progressRequestListener) |
Build call for patchWebhook
|
ApiResponse<Webhook> |
patchWebhookWithHttpInfo(java.lang.String resourceId,
java.util.List<PatchOperation> patchDelta) |
Modify a webhook by ID.
|
Webhook |
postWebhook(WebhookBody webhookBody) |
Create a webhook.
|
com.squareup.okhttp.Call |
postWebhookAsync(WebhookBody webhookBody,
ApiCallback<Webhook> callback) |
Create a webhook.
|
com.squareup.okhttp.Call |
postWebhookCall(WebhookBody webhookBody,
ProgressResponseBody.ProgressListener progressListener,
ProgressRequestBody.ProgressRequestListener progressRequestListener) |
Build call for postWebhook
|
ApiResponse<Webhook> |
postWebhookWithHttpInfo(WebhookBody webhookBody) |
Create a webhook.
|
void |
setApiClient(ApiClient apiClient) |
public WebhooksApi()
public WebhooksApi(ApiClient apiClient)
public ApiClient getApiClient()
public void setApiClient(ApiClient apiClient)
public com.squareup.okhttp.Call deleteWebhookCall(java.lang.String resourceId,
ProgressResponseBody.ProgressListener progressListener,
ProgressRequestBody.ProgressRequestListener progressRequestListener)
throws ApiException
resourceId - The resource ID. (required)progressListener - Progress listenerprogressRequestListener - Progress request listenerApiException - If fail to serialize the request body objectpublic void deleteWebhook(java.lang.String resourceId)
throws ApiException
resourceId - The resource ID. (required)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response bodypublic ApiResponse<java.lang.Void> deleteWebhookWithHttpInfo(java.lang.String resourceId) throws ApiException
resourceId - The resource ID. (required)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response bodypublic com.squareup.okhttp.Call deleteWebhookAsync(java.lang.String resourceId,
ApiCallback<java.lang.Void> callback)
throws ApiException
resourceId - The resource ID. (required)callback - The callback to be executed when the API call finishesApiException - If fail to process the API call, e.g. serializing the request body objectpublic com.squareup.okhttp.Call getWebhookCall(java.lang.String resourceId,
ProgressResponseBody.ProgressListener progressListener,
ProgressRequestBody.ProgressRequestListener progressRequestListener)
throws ApiException
resourceId - The resource ID. (required)progressListener - Progress listenerprogressRequestListener - Progress request listenerApiException - If fail to serialize the request body objectpublic Webhook getWebhook(java.lang.String resourceId) throws ApiException
resourceId - The resource ID. (required)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response bodypublic ApiResponse<Webhook> getWebhookWithHttpInfo(java.lang.String resourceId) throws ApiException
resourceId - The resource ID. (required)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response bodypublic com.squareup.okhttp.Call getWebhookAsync(java.lang.String resourceId,
ApiCallback<Webhook> callback)
throws ApiException
resourceId - The resource ID. (required)callback - The callback to be executed when the API call finishesApiException - If fail to process the API call, e.g. serializing the request body objectpublic com.squareup.okhttp.Call getWebhooksCall(ProgressResponseBody.ProgressListener progressListener, ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException
progressListener - Progress listenerprogressRequestListener - Progress request listenerApiException - If fail to serialize the request body objectpublic Webhooks getWebhooks() throws ApiException
ApiException - If fail to call the API, e.g. server error or cannot deserialize the response bodypublic ApiResponse<Webhooks> getWebhooksWithHttpInfo() throws ApiException
ApiException - If fail to call the API, e.g. server error or cannot deserialize the response bodypublic com.squareup.okhttp.Call getWebhooksAsync(ApiCallback<Webhooks> callback) throws ApiException
callback - The callback to be executed when the API call finishesApiException - If fail to process the API call, e.g. serializing the request body objectpublic com.squareup.okhttp.Call patchWebhookCall(java.lang.String resourceId,
java.util.List<PatchOperation> patchDelta,
ProgressResponseBody.ProgressListener progressListener,
ProgressRequestBody.ProgressRequestListener progressRequestListener)
throws ApiException
resourceId - The resource ID. (required)patchDelta - Requires a JSON Patch representation of the desired changes to the project. 'http://jsonpatch.com/' (required)progressListener - Progress listenerprogressRequestListener - Progress request listenerApiException - If fail to serialize the request body objectpublic Webhook patchWebhook(java.lang.String resourceId, java.util.List<PatchOperation> patchDelta) throws ApiException
resourceId - The resource ID. (required)patchDelta - Requires a JSON Patch representation of the desired changes to the project. 'http://jsonpatch.com/' (required)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response bodypublic ApiResponse<Webhook> patchWebhookWithHttpInfo(java.lang.String resourceId, java.util.List<PatchOperation> patchDelta) throws ApiException
resourceId - The resource ID. (required)patchDelta - Requires a JSON Patch representation of the desired changes to the project. 'http://jsonpatch.com/' (required)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response bodypublic com.squareup.okhttp.Call patchWebhookAsync(java.lang.String resourceId,
java.util.List<PatchOperation> patchDelta,
ApiCallback<Webhook> callback)
throws ApiException
resourceId - The resource ID. (required)patchDelta - Requires a JSON Patch representation of the desired changes to the project. 'http://jsonpatch.com/' (required)callback - The callback to be executed when the API call finishesApiException - If fail to process the API call, e.g. serializing the request body objectpublic com.squareup.okhttp.Call postWebhookCall(WebhookBody webhookBody, ProgressResponseBody.ProgressListener progressListener, ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException
webhookBody - New webhook. (required)progressListener - Progress listenerprogressRequestListener - Progress request listenerApiException - If fail to serialize the request body objectpublic Webhook postWebhook(WebhookBody webhookBody) throws ApiException
webhookBody - New webhook. (required)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response bodypublic ApiResponse<Webhook> postWebhookWithHttpInfo(WebhookBody webhookBody) throws ApiException
webhookBody - New webhook. (required)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response bodypublic com.squareup.okhttp.Call postWebhookAsync(WebhookBody webhookBody, ApiCallback<Webhook> callback) throws ApiException
webhookBody - New webhook. (required)callback - The callback to be executed when the API call finishesApiException - If fail to process the API call, e.g. serializing the request body object