All URIs are relative to https://api.mimepost.com/v1/
| Method | HTTP request | Description |
|---|---|---|
| webhooksGet | GET /webhooks/ | Get the list of all the webhooks |
| webhooksIdDelete | DELETE /webhooks/{id} | Remove a single webhook |
| webhooksIdGet | GET /webhooks/{id} | Get the details of a single webhook |
| webhooksIdPut | PUT /webhooks/{id} | Update the details of a single webhook |
| webhooksPost | POST /webhooks/ | Add single webhook |
ApiResponseAllWebhooks webhooksGet()
Get the list of all the webhooks
// Import classes:
//import com.mimepost.ApiClient;
//import com.mimepost.ApiException;
//import com.mimepost.Configuration;
//import com.mimepost.auth.*;
//import io.swagger.client.api.WebhooksApi;
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure API key authorization: api_key
ApiKeyAuth api_key = (ApiKeyAuth) defaultClient.getAuthentication("api_key");
api_key.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//api_key.setApiKeyPrefix("Token");
WebhooksApi apiInstance = new WebhooksApi();
try {
ApiResponseAllWebhooks result = apiInstance.webhooksGet();
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling WebhooksApi#webhooksGet");
e.printStackTrace();
}This endpoint does not need any parameter.
- Content-Type: application/json
- Accept: application/json
ModelApiResponse webhooksIdDelete(id)
Remove a single webhook
// Import classes:
//import com.mimepost.ApiClient;
//import com.mimepost.ApiException;
//import com.mimepost.Configuration;
//import com.mimepost.auth.*;
//import io.swagger.client.api.WebhooksApi;
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure API key authorization: api_key
ApiKeyAuth api_key = (ApiKeyAuth) defaultClient.getAuthentication("api_key");
api_key.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//api_key.setApiKeyPrefix("Token");
WebhooksApi apiInstance = new WebhooksApi();
Integer id = 56; // Integer |
try {
ModelApiResponse result = apiInstance.webhooksIdDelete(id);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling WebhooksApi#webhooksIdDelete");
e.printStackTrace();
}| Name | Type | Description | Notes |
|---|---|---|---|
| id | Integer |
- Content-Type: application/json
- Accept: application/json
ApiResponseSingleWebhooks webhooksIdGet(id)
Get the details of a single webhook
// Import classes:
//import com.mimepost.ApiClient;
//import com.mimepost.ApiException;
//import com.mimepost.Configuration;
//import com.mimepost.auth.*;
//import io.swagger.client.api.WebhooksApi;
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure API key authorization: api_key
ApiKeyAuth api_key = (ApiKeyAuth) defaultClient.getAuthentication("api_key");
api_key.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//api_key.setApiKeyPrefix("Token");
WebhooksApi apiInstance = new WebhooksApi();
Integer id = 56; // Integer |
try {
ApiResponseSingleWebhooks result = apiInstance.webhooksIdGet(id);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling WebhooksApi#webhooksIdGet");
e.printStackTrace();
}| Name | Type | Description | Notes |
|---|---|---|---|
| id | Integer |
- Content-Type: application/json
- Accept: application/json
ApiResponseSingleWebhooks webhooksIdPut(id, webhook)
Update the details of a single webhook
// Import classes:
//import com.mimepost.ApiClient;
//import com.mimepost.ApiException;
//import com.mimepost.Configuration;
//import com.mimepost.auth.*;
//import io.swagger.client.api.WebhooksApi;
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure API key authorization: api_key
ApiKeyAuth api_key = (ApiKeyAuth) defaultClient.getAuthentication("api_key");
api_key.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//api_key.setApiKeyPrefix("Token");
WebhooksApi apiInstance = new WebhooksApi();
Integer id = 56; // Integer |
Webhook1 webhook = new Webhook1(); // Webhook1 |
try {
ApiResponseSingleWebhooks result = apiInstance.webhooksIdPut(id, webhook);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling WebhooksApi#webhooksIdPut");
e.printStackTrace();
}| Name | Type | Description | Notes |
|---|---|---|---|
| id | Integer | ||
| webhook | Webhook1 | [optional] |
- Content-Type: application/json
- Accept: application/json
ApiResponseWebhooks webhooksPost(webhook)
Add single webhook
// Import classes:
//import com.mimepost.ApiClient;
//import com.mimepost.ApiException;
//import com.mimepost.Configuration;
//import com.mimepost.auth.*;
//import io.swagger.client.api.WebhooksApi;
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure API key authorization: api_key
ApiKeyAuth api_key = (ApiKeyAuth) defaultClient.getAuthentication("api_key");
api_key.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//api_key.setApiKeyPrefix("Token");
WebhooksApi apiInstance = new WebhooksApi();
Webhook webhook = new Webhook(); // Webhook |
try {
ApiResponseWebhooks result = apiInstance.webhooksPost(webhook);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling WebhooksApi#webhooksPost");
e.printStackTrace();
}| Name | Type | Description | Notes |
|---|---|---|---|
| webhook | Webhook | [optional] |
- Content-Type: application/json
- Accept: application/json