All URIs are relative to https://api.prod.cinolla.com, except if the operation defines another base path.
| Method | HTTP request | Description |
|---|---|---|
| createWebhookSubscription() | POST /v3/client/webhooks | Create a new webhook subscription |
| deleteWebhookSubscription() | DELETE /v3/client/webhooks/{id} | Delete a webhook subscription |
| getWebhookSubscriptions() | GET /v3/client/webhooks | Returns all webhook subscriptions |
| updateWebhookSubscription() | PATCH /v3/client/webhooks/{id} | Update the active status of a webhook subscription |
createWebhookSubscription($webhookSubscription2): \SynergiTech\Cinolla\Model\WebhookSubscription3Create a new webhook subscription
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: ApiKeyAuth
$config = SynergiTech\Cinolla\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = SynergiTech\Cinolla\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
$apiInstance = new SynergiTech\Cinolla\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
);
$webhookSubscription2 = new \SynergiTech\Cinolla\Model\WebhookSubscription2(); // \SynergiTech\Cinolla\Model\WebhookSubscription2 | The webhook subscription to create
try {
$result = $apiInstance->createWebhookSubscription($webhookSubscription2);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling WebhooksApi->createWebhookSubscription: ', $e->getMessage(), PHP_EOL;
}| Name | Type | Description | Notes |
|---|---|---|---|
| webhookSubscription2 | \SynergiTech\Cinolla\Model\WebhookSubscription2 | The webhook subscription to create |
\SynergiTech\Cinolla\Model\WebhookSubscription3
- Content-Type:
application/json - Accept:
application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
deleteWebhookSubscription($id)Delete a webhook subscription
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: ApiKeyAuth
$config = SynergiTech\Cinolla\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = SynergiTech\Cinolla\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
$apiInstance = new SynergiTech\Cinolla\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 = 'id_example'; // string
try {
$apiInstance->deleteWebhookSubscription($id);
} catch (Exception $e) {
echo 'Exception when calling WebhooksApi->deleteWebhookSubscription: ', $e->getMessage(), PHP_EOL;
}| Name | Type | Description | Notes |
|---|---|---|---|
| id | string |
void (empty response body)
- Content-Type: Not defined
- Accept: Not defined
[Back to top] [Back to API list] [Back to Model list] [Back to README]
getWebhookSubscriptions(): \SynergiTech\Cinolla\Model\WebhookSubscription[]Returns all webhook subscriptions
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: ApiKeyAuth
$config = SynergiTech\Cinolla\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = SynergiTech\Cinolla\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
$apiInstance = new SynergiTech\Cinolla\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->getWebhookSubscriptions();
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling WebhooksApi->getWebhookSubscriptions: ', $e->getMessage(), PHP_EOL;
}This endpoint does not need any parameter.
\SynergiTech\Cinolla\Model\WebhookSubscription[]
- Content-Type: Not defined
- Accept:
application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
updateWebhookSubscription($id, $webhookSubscription4): \SynergiTech\Cinolla\Model\WebhookSubscription3Update the active status of a webhook subscription
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: ApiKeyAuth
$config = SynergiTech\Cinolla\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = SynergiTech\Cinolla\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
$apiInstance = new SynergiTech\Cinolla\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 = 'id_example'; // string
$webhookSubscription4 = new \SynergiTech\Cinolla\Model\WebhookSubscription4(); // \SynergiTech\Cinolla\Model\WebhookSubscription4 | The active flag to update
try {
$result = $apiInstance->updateWebhookSubscription($id, $webhookSubscription4);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling WebhooksApi->updateWebhookSubscription: ', $e->getMessage(), PHP_EOL;
}| Name | Type | Description | Notes |
|---|---|---|---|
| id | string | ||
| webhookSubscription4 | \SynergiTech\Cinolla\Model\WebhookSubscription4 | The active flag to update |
\SynergiTech\Cinolla\Model\WebhookSubscription3
- Content-Type:
application/json - Accept:
application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]