All URIs are relative to https://cloud.seatable.io, except if the operation defines another base path.
| Method | HTTP request | Description |
|---|---|---|
| createWebhook() | POST /api/v2.1/workspace/{workspace_id}/dtable/{base_name}/webhooks/ | Create Webhook |
| deleteWebhook() | DELETE /api/v2.1/workspace/{workspace_id}/dtable/{base_name}/webhooks/{webhook_id}/ | Delete Webhook |
| listWebhooks() | GET /api/v2.1/workspace/{workspace_id}/dtable/{base_name}/webhooks/ | List Webhooks |
| updateWebhook() | PUT /api/v2.1/workspace/{workspace_id}/dtable/{base_name}/webhooks/{webhook_id}/ | Update Webhook |
createWebhook($workspace_id, $base_name, $url, $secret): objectCreate Webhook
Create a new webhook for a base.
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure Bearer authorization: AccountTokenAuth (use the right token for your request)
$config = SeaTable\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_TOKEN');
$apiInstance = new SeaTable\Client\User\WebhooksApi(
new GuzzleHttp\Client(),
$config
);
$workspace_id = 127; // int | id of your workspace.
$base_name = My Projects; // string | name of your base.
$url = 'url_example'; // string | The URL of the webhook. It should start with `http(s)`. Required.
$secret = 56; // int | When you set a secret, you'll receive the X-SeaTable-Signature header, whose value is the result of SHA1 encryption of the secret key, in the webhook POST request. Optional.
try {
$result = $apiInstance->createWebhook($workspace_id, $base_name, $url, $secret);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling WebhooksApi->createWebhook: ', $e->getMessage(), PHP_EOL;
}| Name | Type | Description | Notes |
|---|---|---|---|
| workspace_id | int | id of your workspace. | |
| base_name | string | name of your base. | |
| url | string | The URL of the webhook. It should start with `http(s)`. Required. | [optional] |
| secret | int | When you set a secret, you'll receive the X-SeaTable-Signature header, whose value is the result of SHA1 encryption of the secret key, in the webhook POST request. Optional. | [optional] |
object
AccountTokenAuth
deleteWebhook($workspace_id, $base_name, $webhook_id): objectDelete Webhook
Remove a webhook from a base.
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure Bearer authorization: AccountTokenAuth (use the right token for your request)
$config = SeaTable\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_TOKEN');
$apiInstance = new SeaTable\Client\User\WebhooksApi(
new GuzzleHttp\Client(),
$config
);
$workspace_id = 127; // int | id of your workspace.
$base_name = My Projects; // string | name of your base.
$webhook_id = 1; // int | The ID of the webhook.
try {
$result = $apiInstance->deleteWebhook($workspace_id, $base_name, $webhook_id);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling WebhooksApi->deleteWebhook: ', $e->getMessage(), PHP_EOL;
}| Name | Type | Description | Notes |
|---|---|---|---|
| workspace_id | int | id of your workspace. | |
| base_name | string | name of your base. | |
| webhook_id | int | The ID of the webhook. |
object
AccountTokenAuth
listWebhooks($workspace_id, $base_name): objectList Webhooks
List all the webhooks created in a base.
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure Bearer authorization: AccountTokenAuth (use the right token for your request)
$config = SeaTable\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_TOKEN');
$apiInstance = new SeaTable\Client\User\WebhooksApi(
new GuzzleHttp\Client(),
$config
);
$workspace_id = 127; // int | id of your workspace.
$base_name = My Projects; // string | name of your base.
try {
$result = $apiInstance->listWebhooks($workspace_id, $base_name);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling WebhooksApi->listWebhooks: ', $e->getMessage(), PHP_EOL;
}| Name | Type | Description | Notes |
|---|---|---|---|
| workspace_id | int | id of your workspace. | |
| base_name | string | name of your base. |
object
AccountTokenAuth
updateWebhook($workspace_id, $base_name, $webhook_id, $url, $secret): objectUpdate Webhook
Update the URL and/or secret of a webhook.
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure Bearer authorization: AccountTokenAuth (use the right token for your request)
$config = SeaTable\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_TOKEN');
$apiInstance = new SeaTable\Client\User\WebhooksApi(
new GuzzleHttp\Client(),
$config
);
$workspace_id = 127; // int | id of your workspace.
$base_name = My Projects; // string | name of your base.
$webhook_id = 1; // int | The ID of the webhook.
$url = 'url_example'; // string | The URL of the webhook. It should start with `http(s)`. Required.
$secret = 56; // int | When you set a secret, you'll receive the X-SeaTable-Signature header, whose value is the result of SHA1 encryption of the secret key, in the webhook POST request. Optional.
try {
$result = $apiInstance->updateWebhook($workspace_id, $base_name, $webhook_id, $url, $secret);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling WebhooksApi->updateWebhook: ', $e->getMessage(), PHP_EOL;
}| Name | Type | Description | Notes |
|---|---|---|---|
| workspace_id | int | id of your workspace. | |
| base_name | string | name of your base. | |
| webhook_id | int | The ID of the webhook. | |
| url | string | The URL of the webhook. It should start with `http(s)`. Required. | [optional] |
| secret | int | When you set a secret, you'll receive the X-SeaTable-Signature header, whose value is the result of SHA1 encryption of the secret key, in the webhook POST request. Optional. | [optional] |
object
AccountTokenAuth