Package com.w3asel.inventree.api
Class WebhookApi
java.lang.Object
com.w3asel.inventree.api.WebhookApi
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintvoidsetApiClient(ApiClient apiClient) voidsetCustomBaseUrl(String customBaseUrl) voidsetHostIndex(int hostIndex) voidwebhookCreate(String endpoint) Process incoming webhook.okhttp3.CallwebhookCreateAsync(String endpoint, ApiCallback<Void> _callback) (asynchronously) Process incoming webhook.okhttp3.CallwebhookCreateCall(String endpoint, ApiCallback _callback) Build call for webhookCreatewebhookCreateWithHttpInfo(String endpoint) Process incoming webhook.
-
Constructor Details
-
WebhookApi
public WebhookApi() -
WebhookApi
-
-
Method Details
-
getApiClient
-
setApiClient
-
getHostIndex
public int getHostIndex() -
setHostIndex
public void setHostIndex(int hostIndex) -
getCustomBaseUrl
-
setCustomBaseUrl
-
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
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
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. -
-