All URIs are relative to https://app.raynet.cz/api/v2, except if the operation defines another base path.
Method | HTTP request | Description |
---|---|---|
customButtonGet() | GET /customButton/ | Načtení konfigurace |
customButtonInsert() | PUT /customButton/ | Nové vlastní tlačítko |
securityChecktokenDetailGet() | GET /security/checktoken/{token}/{personId}/ | ověření bezpečnostního tokenu |
customButtonGet()
Načtení konfigurace
Načtení konfigurace (meta-dat) vlastních akcí.
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: instanceName
$config = belenka\Raynetcrm\Configuration::getDefaultConfiguration()->setApiKey('X-Instance-Name', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = belenka\Raynetcrm\Configuration::getDefaultConfiguration()->setApiKeyPrefix('X-Instance-Name', 'Bearer');
// Configure HTTP basic authorization: basicAuth
$config = belenka\Raynetcrm\Configuration::getDefaultConfiguration()
->setUsername('YOUR_USERNAME')
->setPassword('YOUR_PASSWORD');
$apiInstance = new belenka\Raynetcrm\Api\VlastnTlatkaApi(
// 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 {
$apiInstance->customButtonGet();
} catch (Exception $e) {
echo 'Exception when calling VlastnTlatkaApi->customButtonGet: ', $e->getMessage(), PHP_EOL;
}
This endpoint does not need any parameter.
void (empty response body)
- Content-Type: Not defined
- Accept:
application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
customButtonInsert($custom_button_insert_dto): \belenka\Raynetcrm\Model\CustomButtonInsert201Response
Nové vlastní tlačítko
Založení nového vlastního tlačítka
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: instanceName
$config = belenka\Raynetcrm\Configuration::getDefaultConfiguration()->setApiKey('X-Instance-Name', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = belenka\Raynetcrm\Configuration::getDefaultConfiguration()->setApiKeyPrefix('X-Instance-Name', 'Bearer');
// Configure HTTP basic authorization: basicAuth
$config = belenka\Raynetcrm\Configuration::getDefaultConfiguration()
->setUsername('YOUR_USERNAME')
->setPassword('YOUR_PASSWORD');
$apiInstance = new belenka\Raynetcrm\Api\VlastnTlatkaApi(
// 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
);
$custom_button_insert_dto = {"entityName":"Company","appClass":"DetailView","name":"RAYNET","type":"OPEN_URL","url":"https://www.raynet.cz","openType":"OPEN_WINDOW","openTypeWindowWidth":500,"openTypeWindowHeight":200}; // \belenka\Raynetcrm\Model\CustomButtonInsertDto
try {
$result = $apiInstance->customButtonInsert($custom_button_insert_dto);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling VlastnTlatkaApi->customButtonInsert: ', $e->getMessage(), PHP_EOL;
}
Name | Type | Description | Notes |
---|---|---|---|
custom_button_insert_dto | \belenka\Raynetcrm\Model\CustomButtonInsertDto | [optional] |
\belenka\Raynetcrm\Model\CustomButtonInsert201Response
- Content-Type:
application/json
- Accept:
application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
securityChecktokenDetailGet($token, $person_id)
ověření bezpečnostního tokenu
Při použití tlačítka vlastní akce je důležité ověřit, že požadavek vzešel opravdu ze strany CRM a nebyl podrvžen. K tomuto slouží parametry URL token
a personId
, se kterými je možné provést ověření. Parametr personId
je nepovinný, dodatečně ověřuje, že token vytvořil právě daný uživatel. Token je možné ověřit pouze jednou a jeho platnost je 60
sekund.
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: instanceName
$config = belenka\Raynetcrm\Configuration::getDefaultConfiguration()->setApiKey('X-Instance-Name', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = belenka\Raynetcrm\Configuration::getDefaultConfiguration()->setApiKeyPrefix('X-Instance-Name', 'Bearer');
// Configure HTTP basic authorization: basicAuth
$config = belenka\Raynetcrm\Configuration::getDefaultConfiguration()
->setUsername('YOUR_USERNAME')
->setPassword('YOUR_PASSWORD');
$apiInstance = new belenka\Raynetcrm\Api\VlastnTlatkaApi(
// 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
);
$token = 38PUaFrM6g16bSCUfPuV3Ngdhcvxz00OEW4ODppPi3Q; // string | Token
$person_id = 123; // int | ID kontaktní osoby, které token patří
try {
$apiInstance->securityChecktokenDetailGet($token, $person_id);
} catch (Exception $e) {
echo 'Exception when calling VlastnTlatkaApi->securityChecktokenDetailGet: ', $e->getMessage(), PHP_EOL;
}
Name | Type | Description | Notes |
---|---|---|---|
token | string | Token | |
person_id | int | ID kontaktní osoby, které token patří | [optional] |
void (empty response body)
- Content-Type: Not defined
- Accept:
application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]