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 |
\MimePost\Client\Model\ApiResponseAllWebhooks webhooksGet()
Get the list of all the webhooks
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: api_key
$config = MimePost\Client\Configuration::getDefaultConfiguration()->setApiKey('X-Auth-Token', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = MimePost\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('X-Auth-Token', 'Bearer');
$apiInstance = new MimePost\Client\Api\WebhooksApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client(),
$config
);
try {
$result = $apiInstance->webhooksGet();
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling WebhooksApi->webhooksGet: ', $e->getMessage(), PHP_EOL;
}
?>
This endpoint does not need any parameter.
\MimePost\Client\Model\ApiResponseAllWebhooks
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
\MimePost\Client\Model\ApiResponse webhooksIdDelete($id)
Remove a single webhook
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: api_key
$config = MimePost\Client\Configuration::getDefaultConfiguration()->setApiKey('X-Auth-Token', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = MimePost\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('X-Auth-Token', 'Bearer');
$apiInstance = new MimePost\Client\Api\WebhooksApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client(),
$config
);
$id = 56; // int |
try {
$result = $apiInstance->webhooksIdDelete($id);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling WebhooksApi->webhooksIdDelete: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
id | int |
\MimePost\Client\Model\ApiResponse
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
\MimePost\Client\Model\ApiResponseSingleWebhooks webhooksIdGet($id)
Get the details of a single webhook
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: api_key
$config = MimePost\Client\Configuration::getDefaultConfiguration()->setApiKey('X-Auth-Token', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = MimePost\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('X-Auth-Token', 'Bearer');
$apiInstance = new MimePost\Client\Api\WebhooksApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client(),
$config
);
$id = 56; // int |
try {
$result = $apiInstance->webhooksIdGet($id);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling WebhooksApi->webhooksIdGet: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
id | int |
\MimePost\Client\Model\ApiResponseSingleWebhooks
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
\MimePost\Client\Model\ApiResponseSingleWebhooks webhooksIdPut($id, $webhook)
Update the details of a single webhook
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: api_key
$config = MimePost\Client\Configuration::getDefaultConfiguration()->setApiKey('X-Auth-Token', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = MimePost\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('X-Auth-Token', 'Bearer');
$apiInstance = new MimePost\Client\Api\WebhooksApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client(),
$config
);
$id = 56; // int |
$webhook = new \MimePost\Client\Model\Webhook1(); // \MimePost\Client\Model\Webhook1 |
try {
$result = $apiInstance->webhooksIdPut($id, $webhook);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling WebhooksApi->webhooksIdPut: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
id | int | ||
webhook | \MimePost\Client\Model\Webhook1 | [optional] |
\MimePost\Client\Model\ApiResponseSingleWebhooks
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
\MimePost\Client\Model\ApiResponseWebhooks webhooksPost($webhook)
Add single webhook
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: api_key
$config = MimePost\Client\Configuration::getDefaultConfiguration()->setApiKey('X-Auth-Token', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = MimePost\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('X-Auth-Token', 'Bearer');
$apiInstance = new MimePost\Client\Api\WebhooksApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client(),
$config
);
$webhook = new \MimePost\Client\Model\Webhook(); // \MimePost\Client\Model\Webhook |
try {
$result = $apiInstance->webhooksPost($webhook);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling WebhooksApi->webhooksPost: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
webhook | \MimePost\Client\Model\Webhook | [optional] |
\MimePost\Client\Model\ApiResponseWebhooks
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]