Class WebhookApi

java.lang.Object
com.w3asel.inventree.api.WebhookApi

public class WebhookApi extends Object
  • Constructor Details

    • WebhookApi

      public WebhookApi()
    • WebhookApi

      public WebhookApi(ApiClient apiClient)
  • Method Details

    • getApiClient

      public ApiClient getApiClient()
    • setApiClient

      public void setApiClient(ApiClient apiClient)
    • getHostIndex

      public int getHostIndex()
    • setHostIndex

      public void setHostIndex(int hostIndex)
    • getCustomBaseUrl

      public String getCustomBaseUrl()
    • setCustomBaseUrl

      public void setCustomBaseUrl(String customBaseUrl)
    • webhookCreateCall

      public okhttp3.Call webhookCreateCall(@Nonnull String endpoint, ApiCallback _callback) throws ApiException
      Build call for webhookCreate
      Parameters:
      endpoint - (required)
      _callback - Callback for upload/download progress
      Returns:
      Call to execute
      Throws:
      ApiException - If fail to serialize the request body object
      HTTP Response Details:
      Response Details
      Status Code Description Response Headers
      200 Any data can be posted to the endpoint - everything will be passed to the WebhookEndpoint model. -
    • webhookCreate

      public void webhookCreate(@Nonnull String endpoint) throws ApiException
      Process incoming webhook.
      Parameters:
      endpoint - (required)
      Throws:
      ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
      HTTP Response Details:
      Response Details
      Status Code Description Response Headers
      200 Any data can be posted to the endpoint - everything will be passed to the WebhookEndpoint model. -
    • webhookCreateWithHttpInfo

      public ApiResponse<Void> webhookCreateWithHttpInfo(@Nonnull String endpoint) throws ApiException
      Process incoming webhook.
      Parameters:
      endpoint - (required)
      Returns:
      ApiResponse<Void>
      Throws:
      ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
      HTTP Response Details:
      Response Details
      Status Code Description Response Headers
      200 Any data can be posted to the endpoint - everything will be passed to the WebhookEndpoint model. -
    • webhookCreateAsync

      public okhttp3.Call webhookCreateAsync(@Nonnull String endpoint, ApiCallback<Void> _callback) throws ApiException
      (asynchronously) Process incoming webhook.
      Parameters:
      endpoint - (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
      HTTP Response Details:
      Response Details
      Status Code Description Response Headers
      200 Any data can be posted to the endpoint - everything will be passed to the WebhookEndpoint model. -