All URIs are relative to https://chatbots.obilytics.com/api
Method | HTTP request | Description |
---|---|---|
chatbotChatbotIDRegexTestPost | POST /chatbot/{chatbotID}/regex/test | Test all regex in test examples |
chatbotChatbotIDTestsDelete | DELETE /chatbot/{chatbotID}/tests | Delete all test examples |
chatbotChatbotIDTestsExampleIDDelete | DELETE /chatbot/{chatbotID}/tests/{exampleID} | Delete a specific Test example |
chatbotChatbotIDTestsExampleIDGet | GET /chatbot/{chatbotID}/tests/{exampleID} | Get a specific Test example |
chatbotChatbotIDTestsExampleIDRunPost | POST /chatbot/{chatbotID}/tests/{exampleID}/run | Run a specific test examplee |
chatbotChatbotIDTestsGet | GET /chatbot/{chatbotID}/tests | Returns all test examples |
chatbotChatbotIDTestsPost | POST /chatbot/{chatbotID}/tests | Create a specific Test example |
chatbotChatbotIDTestsRunPost | POST /chatbot/{chatbotID}/tests/run | Run all test examples |
\OpenAPI\Client\Model\TestRegexResult chatbotChatbotIDRegexTestPost($chatbot_id)
Test all regex in test examples
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: bearerAuth
$config = OpenAPI\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = OpenAPI\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');
$apiInstance = new OpenAPI\Client\Api\TestExamplesApi(
// 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
);
$chatbot_id = 'chatbot_id_example'; // string | Pass in a chatbotID to identify the chatbot.
try {
$result = $apiInstance->chatbotChatbotIDRegexTestPost($chatbot_id);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling TestExamplesApi->chatbotChatbotIDRegexTestPost: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
chatbot_id | string | Pass in a chatbotID to identify the chatbot. |
\OpenAPI\Client\Model\TestRegexResult
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
chatbotChatbotIDTestsDelete($chatbot_id)
Delete all test examples
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: bearerAuth
$config = OpenAPI\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = OpenAPI\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');
$apiInstance = new OpenAPI\Client\Api\TestExamplesApi(
// 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
);
$chatbot_id = 'chatbot_id_example'; // string | Pass in a chatbotID to identify the chatbot.
try {
$apiInstance->chatbotChatbotIDTestsDelete($chatbot_id);
} catch (Exception $e) {
echo 'Exception when calling TestExamplesApi->chatbotChatbotIDTestsDelete: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
chatbot_id | string | Pass in a chatbotID to identify the chatbot. |
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]
chatbotChatbotIDTestsExampleIDDelete($chatbot_id, $example_id)
Delete a specific Test example
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: bearerAuth
$config = OpenAPI\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = OpenAPI\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');
$apiInstance = new OpenAPI\Client\Api\TestExamplesApi(
// 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
);
$chatbot_id = 'chatbot_id_example'; // string | Pass in a chatbotID to identify the chatbot.
$example_id = 'example_id_example'; // string | Pass in a exampleID to identify the example.
try {
$apiInstance->chatbotChatbotIDTestsExampleIDDelete($chatbot_id, $example_id);
} catch (Exception $e) {
echo 'Exception when calling TestExamplesApi->chatbotChatbotIDTestsExampleIDDelete: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
chatbot_id | string | Pass in a chatbotID to identify the chatbot. | |
example_id | string | Pass in a exampleID to identify the example. |
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]
\OpenAPI\Client\Model\TestExample chatbotChatbotIDTestsExampleIDGet($chatbot_id, $example_id)
Get a specific Test example
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: bearerAuth
$config = OpenAPI\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = OpenAPI\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');
$apiInstance = new OpenAPI\Client\Api\TestExamplesApi(
// 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
);
$chatbot_id = 'chatbot_id_example'; // string | Pass in a chatbotID to identify the chatbot.
$example_id = 'example_id_example'; // string | Pass in a exampleID to identify the example.
try {
$result = $apiInstance->chatbotChatbotIDTestsExampleIDGet($chatbot_id, $example_id);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling TestExamplesApi->chatbotChatbotIDTestsExampleIDGet: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
chatbot_id | string | Pass in a chatbotID to identify the chatbot. | |
example_id | string | Pass in a exampleID to identify the example. |
\OpenAPI\Client\Model\TestExample
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
\OpenAPI\Client\Model\TestExample chatbotChatbotIDTestsExampleIDRunPost($chatbot_id, $example_id, $test_example)
Run a specific test examplee
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: bearerAuth
$config = OpenAPI\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = OpenAPI\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');
$apiInstance = new OpenAPI\Client\Api\TestExamplesApi(
// 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
);
$chatbot_id = 'chatbot_id_example'; // string | Pass in a chatbotID to identify the chatbot.
$example_id = 'example_id_example'; // string | Pass in a exampleID to identify the test example.
$test_example = new \OpenAPI\Client\Model\TestExample(); // \OpenAPI\Client\Model\TestExample |
try {
$result = $apiInstance->chatbotChatbotIDTestsExampleIDRunPost($chatbot_id, $example_id, $test_example);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling TestExamplesApi->chatbotChatbotIDTestsExampleIDRunPost: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
chatbot_id | string | Pass in a chatbotID to identify the chatbot. | |
example_id | string | Pass in a exampleID to identify the test example. | |
test_example | \OpenAPI\Client\Model\TestExample |
\OpenAPI\Client\Model\TestExample
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
\OpenAPI\Client\Model\TestExample[] chatbotChatbotIDTestsGet($chatbot_id)
Returns all test examples
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: bearerAuth
$config = OpenAPI\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = OpenAPI\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');
$apiInstance = new OpenAPI\Client\Api\TestExamplesApi(
// 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
);
$chatbot_id = 'chatbot_id_example'; // string | Pass in a chatbotID to identify the chatbot.
try {
$result = $apiInstance->chatbotChatbotIDTestsGet($chatbot_id);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling TestExamplesApi->chatbotChatbotIDTestsGet: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
chatbot_id | string | Pass in a chatbotID to identify the chatbot. |
\OpenAPI\Client\Model\TestExample[]
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
\OpenAPI\Client\Model\TestExample chatbotChatbotIDTestsPost($chatbot_id, $test_example)
Create a specific Test example
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: bearerAuth
$config = OpenAPI\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = OpenAPI\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');
$apiInstance = new OpenAPI\Client\Api\TestExamplesApi(
// 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
);
$chatbot_id = 'chatbot_id_example'; // string | Pass in a chatbotID to identify the chatbot.
$test_example = new \OpenAPI\Client\Model\TestExample(); // \OpenAPI\Client\Model\TestExample |
try {
$result = $apiInstance->chatbotChatbotIDTestsPost($chatbot_id, $test_example);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling TestExamplesApi->chatbotChatbotIDTestsPost: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
chatbot_id | string | Pass in a chatbotID to identify the chatbot. | |
test_example | \OpenAPI\Client\Model\TestExample |
\OpenAPI\Client\Model\TestExample
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
\OpenAPI\Client\Model\TestExample chatbotChatbotIDTestsRunPost($chatbot_id)
Run all test examples
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: bearerAuth
$config = OpenAPI\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = OpenAPI\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');
$apiInstance = new OpenAPI\Client\Api\TestExamplesApi(
// 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
);
$chatbot_id = 'chatbot_id_example'; // string | Pass in a chatbotID to identify the chatbot.
try {
$result = $apiInstance->chatbotChatbotIDTestsRunPost($chatbot_id);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling TestExamplesApi->chatbotChatbotIDTestsRunPost: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
chatbot_id | string | Pass in a chatbotID to identify the chatbot. |
\OpenAPI\Client\Model\TestExample
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]