All URIs are relative to https://api.codat.io, except if the operation defines another base path.
Method | HTTP request | Description |
---|---|---|
rulesAlertsAlertIdGet() | GET /rules/alerts/{alertId} | |
rulesAlertsGet() | GET /rules/alerts | |
rulesGet() | GET /rules | Fetch a list of rules |
rulesPost() | POST /rules | Subscribe to a rule |
rulesRuleIdAlertsGet() | GET /rules/{ruleId}/alerts | |
rulesRuleIdDelete() | DELETE /rules/{ruleId} | |
rulesRuleIdGet() | GET /rules/{ruleId} | |
rulesRuleIdPut() | PUT /rules/{ruleId} |
rulesAlertsAlertIdGet($alert_id): \TheLogicStudio\CodatPHP\Model\CodatPublicApiModelsRulesAlertModel
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure OAuth2 access token for authorization: CodatLogin
$config = TheLogicStudio\CodatPHP\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
// Configure API key authorization: APIKeyAuth
$config = TheLogicStudio\CodatPHP\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = TheLogicStudio\CodatPHP\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');
$apiInstance = new TheLogicStudio\CodatPHP\Api\RulesApi(
// 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
);
$alert_id = 'alert_id_example'; // string
try {
$result = $apiInstance->rulesAlertsAlertIdGet($alert_id);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling RulesApi->rulesAlertsAlertIdGet: ', $e->getMessage(), PHP_EOL;
}
Name | Type | Description | Notes |
---|---|---|---|
alert_id | string |
\TheLogicStudio\CodatPHP\Model\CodatPublicApiModelsRulesAlertModel
- Content-Type: Not defined
- Accept:
application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
rulesAlertsGet($page, $company_id, $page_size, $query, $order_by): \TheLogicStudio\CodatPHP\Model\CodatPublicApiModelsRulesAlertModelPagedResponseModel
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure OAuth2 access token for authorization: CodatLogin
$config = TheLogicStudio\CodatPHP\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
// Configure API key authorization: APIKeyAuth
$config = TheLogicStudio\CodatPHP\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = TheLogicStudio\CodatPHP\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');
$apiInstance = new TheLogicStudio\CodatPHP\Api\RulesApi(
// 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
);
$page = 56; // int
$company_id = 'company_id_example'; // string
$page_size = 100; // int
$query = 'query_example'; // string
$order_by = 'order_by_example'; // string
try {
$result = $apiInstance->rulesAlertsGet($page, $company_id, $page_size, $query, $order_by);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling RulesApi->rulesAlertsGet: ', $e->getMessage(), PHP_EOL;
}
Name | Type | Description | Notes |
---|---|---|---|
page | int | ||
company_id | string | [optional] | |
page_size | int | [optional] [default to 100] | |
query | string | [optional] | |
order_by | string | [optional] |
\TheLogicStudio\CodatPHP\Model\CodatPublicApiModelsRulesAlertModelPagedResponseModel
- Content-Type: Not defined
- Accept:
application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
rulesGet($page, $page_size, $query, $order_by): \TheLogicStudio\CodatPHP\Model\CodatPublicApiModelsRulesRulePagedResponseModel
Fetch a list of rules
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure OAuth2 access token for authorization: CodatLogin
$config = TheLogicStudio\CodatPHP\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
// Configure API key authorization: APIKeyAuth
$config = TheLogicStudio\CodatPHP\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = TheLogicStudio\CodatPHP\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');
$apiInstance = new TheLogicStudio\CodatPHP\Api\RulesApi(
// 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
);
$page = 56; // int
$page_size = 100; // int
$query = 'query_example'; // string
$order_by = 'order_by_example'; // string
try {
$result = $apiInstance->rulesGet($page, $page_size, $query, $order_by);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling RulesApi->rulesGet: ', $e->getMessage(), PHP_EOL;
}
Name | Type | Description | Notes |
---|---|---|---|
page | int | ||
page_size | int | [optional] [default to 100] | |
query | string | [optional] | |
order_by | string | [optional] |
\TheLogicStudio\CodatPHP\Model\CodatPublicApiModelsRulesRulePagedResponseModel
- Content-Type: Not defined
- Accept:
application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
rulesPost($codat_public_api_models_rules_add_rule_model): \TheLogicStudio\CodatPHP\Model\CodatPublicApiModelsRulesRule
Subscribe to a rule
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure OAuth2 access token for authorization: CodatLogin
$config = TheLogicStudio\CodatPHP\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
// Configure API key authorization: APIKeyAuth
$config = TheLogicStudio\CodatPHP\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = TheLogicStudio\CodatPHP\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');
$apiInstance = new TheLogicStudio\CodatPHP\Api\RulesApi(
// 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
);
$codat_public_api_models_rules_add_rule_model = new \TheLogicStudio\CodatPHP\Model\CodatPublicApiModelsRulesAddRuleModel(); // \TheLogicStudio\CodatPHP\Model\CodatPublicApiModelsRulesAddRuleModel |
try {
$result = $apiInstance->rulesPost($codat_public_api_models_rules_add_rule_model);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling RulesApi->rulesPost: ', $e->getMessage(), PHP_EOL;
}
Name | Type | Description | Notes |
---|---|---|---|
codat_public_api_models_rules_add_rule_model | \TheLogicStudio\CodatPHP\Model\CodatPublicApiModelsRulesAddRuleModel | [optional] |
\TheLogicStudio\CodatPHP\Model\CodatPublicApiModelsRulesRule
- Content-Type:
application/json
- Accept:
application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
rulesRuleIdAlertsGet($rule_id, $page, $page_size, $query, $order_by): \TheLogicStudio\CodatPHP\Model\CodatPublicApiModelsRulesAlertModelPagedResponseModel
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure OAuth2 access token for authorization: CodatLogin
$config = TheLogicStudio\CodatPHP\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
// Configure API key authorization: APIKeyAuth
$config = TheLogicStudio\CodatPHP\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = TheLogicStudio\CodatPHP\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');
$apiInstance = new TheLogicStudio\CodatPHP\Api\RulesApi(
// 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
);
$rule_id = 'rule_id_example'; // string
$page = 56; // int
$page_size = 100; // int
$query = 'query_example'; // string
$order_by = 'order_by_example'; // string
try {
$result = $apiInstance->rulesRuleIdAlertsGet($rule_id, $page, $page_size, $query, $order_by);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling RulesApi->rulesRuleIdAlertsGet: ', $e->getMessage(), PHP_EOL;
}
Name | Type | Description | Notes |
---|---|---|---|
rule_id | string | ||
page | int | ||
page_size | int | [optional] [default to 100] | |
query | string | [optional] | |
order_by | string | [optional] |
\TheLogicStudio\CodatPHP\Model\CodatPublicApiModelsRulesAlertModelPagedResponseModel
- Content-Type: Not defined
- Accept:
application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
rulesRuleIdDelete($rule_id)
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure OAuth2 access token for authorization: CodatLogin
$config = TheLogicStudio\CodatPHP\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
// Configure API key authorization: APIKeyAuth
$config = TheLogicStudio\CodatPHP\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = TheLogicStudio\CodatPHP\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');
$apiInstance = new TheLogicStudio\CodatPHP\Api\RulesApi(
// 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
);
$rule_id = 'rule_id_example'; // string
try {
$apiInstance->rulesRuleIdDelete($rule_id);
} catch (Exception $e) {
echo 'Exception when calling RulesApi->rulesRuleIdDelete: ', $e->getMessage(), PHP_EOL;
}
Name | Type | Description | Notes |
---|---|---|---|
rule_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]
rulesRuleIdGet($rule_id): \TheLogicStudio\CodatPHP\Model\CodatPublicApiModelsRulesRule
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure OAuth2 access token for authorization: CodatLogin
$config = TheLogicStudio\CodatPHP\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
// Configure API key authorization: APIKeyAuth
$config = TheLogicStudio\CodatPHP\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = TheLogicStudio\CodatPHP\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');
$apiInstance = new TheLogicStudio\CodatPHP\Api\RulesApi(
// 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
);
$rule_id = 'rule_id_example'; // string
try {
$result = $apiInstance->rulesRuleIdGet($rule_id);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling RulesApi->rulesRuleIdGet: ', $e->getMessage(), PHP_EOL;
}
Name | Type | Description | Notes |
---|---|---|---|
rule_id | string |
\TheLogicStudio\CodatPHP\Model\CodatPublicApiModelsRulesRule
- Content-Type: Not defined
- Accept:
application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
rulesRuleIdPut($rule_id, $codat_public_api_models_rules_rule): \TheLogicStudio\CodatPHP\Model\CodatPublicApiModelsRulesRule
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure OAuth2 access token for authorization: CodatLogin
$config = TheLogicStudio\CodatPHP\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
// Configure API key authorization: APIKeyAuth
$config = TheLogicStudio\CodatPHP\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = TheLogicStudio\CodatPHP\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');
$apiInstance = new TheLogicStudio\CodatPHP\Api\RulesApi(
// 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
);
$rule_id = 'rule_id_example'; // string
$codat_public_api_models_rules_rule = new \TheLogicStudio\CodatPHP\Model\CodatPublicApiModelsRulesRule(); // \TheLogicStudio\CodatPHP\Model\CodatPublicApiModelsRulesRule
try {
$result = $apiInstance->rulesRuleIdPut($rule_id, $codat_public_api_models_rules_rule);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling RulesApi->rulesRuleIdPut: ', $e->getMessage(), PHP_EOL;
}
Name | Type | Description | Notes |
---|---|---|---|
rule_id | string | ||
codat_public_api_models_rules_rule | \TheLogicStudio\CodatPHP\Model\CodatPublicApiModelsRulesRule | [optional] |
\TheLogicStudio\CodatPHP\Model\CodatPublicApiModelsRulesRule
- Content-Type:
application/json
- Accept:
application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]