Class WebhooksApi


  • public class WebhooksApi
    extends java.lang.Object
    • Constructor Detail

      • WebhooksApi

        public WebhooksApi()
      • WebhooksApi

        public WebhooksApi​(ApiClient apiClient)
    • Method Detail

      • getApiClient

        public ApiClient getApiClient()
      • setApiClient

        public void setApiClient​(ApiClient apiClient)
      • getHostIndex

        public int getHostIndex()
      • setHostIndex

        public void setHostIndex​(int hostIndex)
      • getCustomBaseUrl

        public java.lang.String getCustomBaseUrl()
      • setCustomBaseUrl

        public void setCustomBaseUrl​(java.lang.String customBaseUrl)
      • deleteWebhookCall

        public okhttp3.Call deleteWebhookCall​(java.lang.String id,
                                              ApiCallback _callback)
                                       throws ApiException
        Build call for deleteWebhook
        Parameters:
        id - The ID of the webhook to delete (required)
        _callback - Callback for upload/download progress
        Returns:
        Call to execute
        Throws:
        ApiException - If fail to serialize the request body object
      • deleteWebhook

        public void deleteWebhook​(java.lang.String id)
                           throws ApiException
        Delete webhook Delete a webhook by ID.
        Parameters:
        id - The ID of the webhook to delete (required)
        Throws:
        ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
      • deleteWebhookWithHttpInfo

        public ApiResponse<java.lang.Void> deleteWebhookWithHttpInfo​(java.lang.String id)
                                                              throws ApiException
        Delete webhook Delete a webhook by ID.
        Parameters:
        id - The ID of the webhook to delete (required)
        Returns:
        ApiResponse<Void>
        Throws:
        ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
      • deleteWebhookAsync

        public okhttp3.Call deleteWebhookAsync​(java.lang.String id,
                                               ApiCallback<java.lang.Void> _callback)
                                        throws ApiException
        Delete webhook (asynchronously) Delete a webhook by ID.
        Parameters:
        id - The ID of the webhook to delete (required)
        _callback - The callback to be executed when the API call finishes
        Returns:
        The request call
        Throws:
        ApiException - If fail to process the API call, e.g. serializing the request body object
      • getAllWebhooksCall

        public okhttp3.Call getAllWebhooksCall​(ApiCallback _callback)
                                        throws ApiException
        Build call for getAllWebhooks
        Parameters:
        _callback - Callback for upload/download progress
        Returns:
        Call to execute
        Throws:
        ApiException - If fail to serialize the request body object
      • getAllWebhooks

        public Webhooks getAllWebhooks()
                                throws ApiException
        List webhooks Fetch a list of all webhooks.
        Returns:
        Webhooks
        Throws:
        ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
      • getAllWebhooksWithHttpInfo

        public ApiResponse<Webhooks> getAllWebhooksWithHttpInfo()
                                                         throws ApiException
        List webhooks Fetch a list of all webhooks.
        Returns:
        ApiResponse<Webhooks>
        Throws:
        ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
      • getAllWebhooksAsync

        public okhttp3.Call getAllWebhooksAsync​(ApiCallback<Webhooks> _callback)
                                         throws ApiException
        List webhooks (asynchronously) Fetch a list of all webhooks.
        Parameters:
        _callback - The callback to be executed when the API call finishes
        Returns:
        The request call
        Throws:
        ApiException - If fail to process the API call, e.g. serializing the request body object
      • getWebhookCall

        public okhttp3.Call getWebhookCall​(java.lang.String id,
                                           ApiCallback _callback)
                                    throws ApiException
        Build call for getWebhook
        Parameters:
        id - The ID of the webhook (required)
        _callback - Callback for upload/download progress
        Returns:
        Call to execute
        Throws:
        ApiException - If fail to serialize the request body object
      • getWebhook

        public Webhook getWebhook​(java.lang.String id)
                           throws ApiException
        Get webhook Get a single webhook by ID.
        Parameters:
        id - The ID of the webhook (required)
        Returns:
        Webhook
        Throws:
        ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
      • getWebhookWithHttpInfo

        public ApiResponse<Webhook> getWebhookWithHttpInfo​(java.lang.String id)
                                                    throws ApiException
        Get webhook Get a single webhook by ID.
        Parameters:
        id - The ID of the webhook (required)
        Returns:
        ApiResponse<Webhook>
        Throws:
        ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
      • getWebhookAsync

        public okhttp3.Call getWebhookAsync​(java.lang.String id,
                                            ApiCallback<Webhook> _callback)
                                     throws ApiException
        Get webhook (asynchronously) Get a single webhook by ID.
        Parameters:
        id - The ID of the webhook (required)
        _callback - The callback to be executed when the API call finishes
        Returns:
        The request call
        Throws:
        ApiException - If fail to process the API call, e.g. serializing the request body object
      • patchWebhookCall

        public okhttp3.Call patchWebhookCall​(java.lang.String id,
                                             java.util.List<PatchOperation> patchOperation,
                                             ApiCallback _callback)
                                      throws ApiException
        Build call for patchWebhook
        Parameters:
        id - The ID of the webhook to update (required)
        patchOperation - (required)
        _callback - Callback for upload/download progress
        Returns:
        Call to execute
        Throws:
        ApiException - If fail to serialize the request body object
      • patchWebhook

        public Webhook patchWebhook​(java.lang.String id,
                                    java.util.List<PatchOperation> patchOperation)
                             throws ApiException
        Update webhook Update a webhook's settings. The request should be a valid JSON Patch document describing the changes to be made to the webhook.
        Parameters:
        id - The ID of the webhook to update (required)
        patchOperation - (required)
        Returns:
        Webhook
        Throws:
        ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
      • patchWebhookWithHttpInfo

        public ApiResponse<Webhook> patchWebhookWithHttpInfo​(java.lang.String id,
                                                             java.util.List<PatchOperation> patchOperation)
                                                      throws ApiException
        Update webhook Update a webhook's settings. The request should be a valid JSON Patch document describing the changes to be made to the webhook.
        Parameters:
        id - The ID of the webhook to update (required)
        patchOperation - (required)
        Returns:
        ApiResponse<Webhook>
        Throws:
        ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
      • patchWebhookAsync

        public okhttp3.Call patchWebhookAsync​(java.lang.String id,
                                              java.util.List<PatchOperation> patchOperation,
                                              ApiCallback<Webhook> _callback)
                                       throws ApiException
        Update webhook (asynchronously) Update a webhook's settings. The request should be a valid JSON Patch document describing the changes to be made to the webhook.
        Parameters:
        id - The ID of the webhook to update (required)
        patchOperation - (required)
        _callback - The callback to be executed when the API call finishes
        Returns:
        The request call
        Throws:
        ApiException - If fail to process the API call, e.g. serializing the request body object
      • postWebhookCall

        public okhttp3.Call postWebhookCall​(WebhookPost webhookPost,
                                            ApiCallback _callback)
                                     throws ApiException
        Build call for postWebhook
        Parameters:
        webhookPost - (required)
        _callback - Callback for upload/download progress
        Returns:
        Call to execute
        Throws:
        ApiException - If fail to serialize the request body object
      • postWebhook

        public Webhook postWebhook​(WebhookPost webhookPost)
                            throws ApiException
        Creates a webhook Create a new webhook.
        Parameters:
        webhookPost - (required)
        Returns:
        Webhook
        Throws:
        ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
      • postWebhookWithHttpInfo

        public ApiResponse<Webhook> postWebhookWithHttpInfo​(WebhookPost webhookPost)
                                                     throws ApiException
        Creates a webhook Create a new webhook.
        Parameters:
        webhookPost - (required)
        Returns:
        ApiResponse<Webhook>
        Throws:
        ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
      • postWebhookAsync

        public okhttp3.Call postWebhookAsync​(WebhookPost webhookPost,
                                             ApiCallback<Webhook> _callback)
                                      throws ApiException
        Creates a webhook (asynchronously) Create a new webhook.
        Parameters:
        webhookPost - (required)
        _callback - The callback to be executed when the API call finishes
        Returns:
        The request call
        Throws:
        ApiException - If fail to process the API call, e.g. serializing the request body object