All URIs are relative to https://chatbots.obilytics.com/api
Method | HTTP request | Description |
---|---|---|
chatbotChatbotIDDelete | DELETE /chatbot/{chatbotID} | Delete a chatbots |
chatbotChatbotIDDeployPost | POST /chatbot/{chatbotID}/deploy | Deploys a chatbot |
chatbotChatbotIDExportGet | GET /chatbot/{chatbotID}/export | Creates an export of the chatbot including all the examples, expressions and regex |
chatbotChatbotIDGet | GET /chatbot/{chatbotID} | Returns a specific Chatbot |
chatbotChatbotIDPut | PUT /chatbot/{chatbotID} | Modiefies an existing chatbot |
chatbotGet | GET /chatbot | Returns all Chatbots |
chatbotImportPost | POST /chatbot/import | Create a complete chatbot from a dictionary |
chatbotPost | POST /chatbot | Create an empty chatbot |
chatbotChatbotIDDelete($chatbot_id)
Delete a chatbots
<?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\ChatbotApi(
// 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->chatbotChatbotIDDelete($chatbot_id);
} catch (Exception $e) {
echo 'Exception when calling ChatbotApi->chatbotChatbotIDDelete: ', $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]
\OpenAPI\Client\Model\Chatbot chatbotChatbotIDDeployPost($chatbot_id)
Deploys a chatbot
<?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\ChatbotApi(
// 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->chatbotChatbotIDDeployPost($chatbot_id);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling ChatbotApi->chatbotChatbotIDDeployPost: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
chatbot_id | string | Pass in a chatbotID to identify the chatbot. |
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
\OpenAPI\Client\Model\CompleteChatbot chatbotChatbotIDExportGet($chatbot_id)
Creates an export of the chatbot including all the examples, expressions and regex
<?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\ChatbotApi(
// 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->chatbotChatbotIDExportGet($chatbot_id);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling ChatbotApi->chatbotChatbotIDExportGet: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
chatbot_id | string | Pass in a chatbotID to identify the chatbot. |
\OpenAPI\Client\Model\CompleteChatbot
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
\OpenAPI\Client\Model\Chatbot chatbotChatbotIDGet($chatbot_id)
Returns a specific Chatbot
<?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\ChatbotApi(
// 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->chatbotChatbotIDGet($chatbot_id);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling ChatbotApi->chatbotChatbotIDGet: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
chatbot_id | string | Pass in a chatbotID to identify the chatbot. |
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
\OpenAPI\Client\Model\Chatbot chatbotChatbotIDPut($chatbot_id, $update_chatbot)
Modiefies an existing chatbot
<?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\ChatbotApi(
// 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.
$update_chatbot = new \OpenAPI\Client\Model\UpdateChatbot(); // \OpenAPI\Client\Model\UpdateChatbot |
try {
$result = $apiInstance->chatbotChatbotIDPut($chatbot_id, $update_chatbot);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling ChatbotApi->chatbotChatbotIDPut: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
chatbot_id | string | Pass in a chatbotID to identify the chatbot. | |
update_chatbot | \OpenAPI\Client\Model\UpdateChatbot |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
\OpenAPI\Client\Model\Chatbot[] chatbotGet()
Returns all Chatbots
<?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\ChatbotApi(
// 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->chatbotGet();
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling ChatbotApi->chatbotGet: ', $e->getMessage(), PHP_EOL;
}
?>
This endpoint does not need any parameter.
\OpenAPI\Client\Model\Chatbot[]
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
\OpenAPI\Client\Model\CompleteChatbot[] chatbotImportPost($complete_chatbot)
Create a complete chatbot from a dictionary
<?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\ChatbotApi(
// 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
);
$complete_chatbot = new \OpenAPI\Client\Model\CompleteChatbot(); // \OpenAPI\Client\Model\CompleteChatbot |
try {
$result = $apiInstance->chatbotImportPost($complete_chatbot);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling ChatbotApi->chatbotImportPost: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
complete_chatbot | \OpenAPI\Client\Model\CompleteChatbot |
\OpenAPI\Client\Model\CompleteChatbot[]
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
\OpenAPI\Client\Model\Chatbot chatbotPost($empty_chatbot)
Create an empty chatbot
<?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\ChatbotApi(
// 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
);
$empty_chatbot = new \OpenAPI\Client\Model\EmptyChatbot(); // \OpenAPI\Client\Model\EmptyChatbot |
try {
$result = $apiInstance->chatbotPost($empty_chatbot);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling ChatbotApi->chatbotPost: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
empty_chatbot | \OpenAPI\Client\Model\EmptyChatbot |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]