All URIs are relative to https://cloud.seatable.io, except if the operation defines another base path.
| Method | HTTP request | Description |
|---|---|---|
| addNotificationRule() | POST /api/v2.1/workspace/{workspace_id}/dtable/{base_name}/notification-rules/ | Add Notification Rule |
| deleteNotificationRule() | DELETE /api/v2.1/workspace/{workspace_id}/dtable/{base_name}/notification-rules/{notification_rule_id}/ | Delete Notification Rule |
| listNotificationRules() | GET /api/v2.1/workspace/{workspace_id}/dtable/{base_name}/notification-rules/ | List Notification Rules |
| markNotificationAsSeen() | DELETE /api/v2.1/notifications/ | Mark Notifications As Seen |
| updateNotificationRule() | PUT /api/v2.1/workspace/{workspace_id}/dtable/{base_name}/notification-rules/{notification_rule_id}/ | Update Notification Rule |
addNotificationRule($workspace_id, $base_name, $add_notification_rule_request): \SeaTable\Client\User\AddNotificationRule200ResponseAdd Notification Rule
Use this request to add a new notification rule 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\NotificationsApi(
new GuzzleHttp\Client(),
$config
);
$workspace_id = 127; // int | id of your workspace.
$base_name = My Projects; // string | name of your base.
$add_notification_rule_request = new \SeaTable\Client\User\AddNotificationRuleRequest(); // \SeaTable\Client\User\AddNotificationRuleRequest
try {
$result = $apiInstance->addNotificationRule($workspace_id, $base_name, $add_notification_rule_request);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling NotificationsApi->addNotificationRule: ', $e->getMessage(), PHP_EOL;
}| Name | Type | Description | Notes |
|---|---|---|---|
| workspace_id | int | id of your workspace. | |
| base_name | string | name of your base. | |
| add_notification_rule_request | \SeaTable\Client\User\AddNotificationRuleRequest |
\SeaTable\Client\User\AddNotificationRule200Response
AccountTokenAuth
deleteNotificationRule($workspace_id, $base_name, $notification_rule_id): objectDelete Notification Rule
Delete an existing notification rule. The notification_rule_id is the ID of the notification to be deleted. This can be retrieved by List Notification Rules or can be seen when you Add Base Notification Rule.
<?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\NotificationsApi(
new GuzzleHttp\Client(),
$config
);
$workspace_id = 127; // int | id of your workspace.
$base_name = My Projects; // string | name of your base.
$notification_rule_id = 1; // string | The ID of the notification rule.
try {
$result = $apiInstance->deleteNotificationRule($workspace_id, $base_name, $notification_rule_id);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling NotificationsApi->deleteNotificationRule: ', $e->getMessage(), PHP_EOL;
}| Name | Type | Description | Notes |
|---|---|---|---|
| workspace_id | int | id of your workspace. | |
| base_name | string | name of your base. | |
| notification_rule_id | string | The ID of the notification rule. |
object
AccountTokenAuth
listNotificationRules($workspace_id, $base_name): objectList Notification Rules
Use this request to list all the existing notification rules in the current 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\NotificationsApi(
new GuzzleHttp\Client(),
$config
);
$workspace_id = 127; // int | id of your workspace.
$base_name = My Projects; // string | name of your base.
try {
$result = $apiInstance->listNotificationRules($workspace_id, $base_name);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling NotificationsApi->listNotificationRules: ', $e->getMessage(), PHP_EOL;
}| Name | Type | Description | Notes |
|---|---|---|---|
| workspace_id | int | id of your workspace. | |
| base_name | string | name of your base. |
object
AccountTokenAuth
markNotificationAsSeen(): objectMark Notifications As Seen
Delete all notifications sent to the current user.
<?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\NotificationsApi(
new GuzzleHttp\Client(),
$config
);
try {
$result = $apiInstance->markNotificationAsSeen();
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling NotificationsApi->markNotificationAsSeen: ', $e->getMessage(), PHP_EOL;
}This endpoint does not need any parameter.
object
AccountTokenAuth
updateNotificationRule($workspace_id, $base_name, $notification_rule_id, $update_notification_rule_request): \SeaTable\Client\User\AddNotificationRule200ResponseUpdate Notification Rule
Update the params of an existing notification rule. The notification_rule_id is the ID of the notification to be updated. This can be retrieved by List Notification Rules or can be seen when you Add Base Notification Rule. For the exact params that you can update, refer to the params list in the call Add Base Notification Rule.
<?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\NotificationsApi(
new GuzzleHttp\Client(),
$config
);
$workspace_id = 127; // int | id of your workspace.
$base_name = My Projects; // string | name of your base.
$notification_rule_id = 1; // string | The ID of the notification rule.
$update_notification_rule_request = new \SeaTable\Client\User\UpdateNotificationRuleRequest(); // \SeaTable\Client\User\UpdateNotificationRuleRequest
try {
$result = $apiInstance->updateNotificationRule($workspace_id, $base_name, $notification_rule_id, $update_notification_rule_request);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling NotificationsApi->updateNotificationRule: ', $e->getMessage(), PHP_EOL;
}| Name | Type | Description | Notes |
|---|---|---|---|
| workspace_id | int | id of your workspace. | |
| base_name | string | name of your base. | |
| notification_rule_id | string | The ID of the notification rule. | |
| update_notification_rule_request | \SeaTable\Client\User\UpdateNotificationRuleRequest | [optional] |
\SeaTable\Client\User\AddNotificationRule200Response
AccountTokenAuth