All URIs are relative to https://cargomart.ru.
Method | HTTP request | Description |
---|---|---|
apiV2CandidateCountGet() | GET /api/v2/candidate/count | Вывод количество потенциальных сотрудников компании. |
apiV2CandidateGet() | GET /api/v2/candidate | Вывод списка потенциальных сотрудников компании. |
apiV2CandidateIdGet() | GET /api/v2/candidate/{id} | Получение информации по потенциальному сотруднику компании. |
apiV2CandidateIdPost() | POST /api/v2/candidate/{id} | Создать сотрудника из потенциального сотрудника. |
apiV2CandidateCountGet(): \MagDv\Cargomart\Dto\CandidateCountResponse
Вывод количество потенциальных сотрудников компании.
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: CookieTokenAuth
$config = MagDv\Cargomart\Configuration::getDefaultConfiguration()->setApiKey('token', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = MagDv\Cargomart\Configuration::getDefaultConfiguration()->setApiKeyPrefix('token', 'Bearer');
// Configure API key authorization: HeaderAuthorizationAuth
$config = MagDv\Cargomart\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = MagDv\Cargomart\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');
$apiInstance = new MagDv\Cargomart\Api\CandidateApi(
// If you want use custom http client, pass your client which implements `Psr\Http\Client\ClientInterface`.
// This is optional, `Psr18ClientDiscovery` will be used to find http client. For instance `GuzzleHttp\Client` implements that interface
new GuzzleHttp\Client(),
$config
);
try {
$result = $apiInstance->apiV2CandidateCountGet();
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling CandidateApi->apiV2CandidateCountGet: ', $e->getMessage(), PHP_EOL;
}
This endpoint does not need any parameter.
\MagDv\Cargomart\Dto\CandidateCountResponse
CookieTokenAuth, HeaderAuthorizationAuth
- Content-Type: Not defined
- Accept:
application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
apiV2CandidateGet($page, $per_page): \MagDv\Cargomart\Dto\CandidateListResponse
Вывод списка потенциальных сотрудников компании.
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: CookieTokenAuth
$config = MagDv\Cargomart\Configuration::getDefaultConfiguration()->setApiKey('token', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = MagDv\Cargomart\Configuration::getDefaultConfiguration()->setApiKeyPrefix('token', 'Bearer');
// Configure API key authorization: HeaderAuthorizationAuth
$config = MagDv\Cargomart\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = MagDv\Cargomart\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');
$apiInstance = new MagDv\Cargomart\Api\CandidateApi(
// If you want use custom http client, pass your client which implements `Psr\Http\Client\ClientInterface`.
// This is optional, `Psr18ClientDiscovery` will be used to find http client. For instance `GuzzleHttp\Client` implements that interface
new GuzzleHttp\Client(),
$config
);
$page = 1; // int | Просматриваемая страница, по умолчанию 1
$per_page = 20; // int | Количество элементов на одну страницу, по умолчанию 20
try {
$result = $apiInstance->apiV2CandidateGet($page, $per_page);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling CandidateApi->apiV2CandidateGet: ', $e->getMessage(), PHP_EOL;
}
Name | Type | Description | Notes |
---|---|---|---|
page | int | Просматриваемая страница, по умолчанию 1 | [optional] [default to 1] |
per_page | int | Количество элементов на одну страницу, по умолчанию 20 | [optional] [default to 20] |
\MagDv\Cargomart\Dto\CandidateListResponse
CookieTokenAuth, HeaderAuthorizationAuth
- Content-Type: Not defined
- Accept:
application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
apiV2CandidateIdGet($id): \MagDv\Cargomart\Dto\CandidateResponse
Получение информации по потенциальному сотруднику компании.
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: CookieTokenAuth
$config = MagDv\Cargomart\Configuration::getDefaultConfiguration()->setApiKey('token', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = MagDv\Cargomart\Configuration::getDefaultConfiguration()->setApiKeyPrefix('token', 'Bearer');
// Configure API key authorization: HeaderAuthorizationAuth
$config = MagDv\Cargomart\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = MagDv\Cargomart\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');
$apiInstance = new MagDv\Cargomart\Api\CandidateApi(
// If you want use custom http client, pass your client which implements `Psr\Http\Client\ClientInterface`.
// This is optional, `Psr18ClientDiscovery` will be used to find http client. For instance `GuzzleHttp\Client` implements that interface
new GuzzleHttp\Client(),
$config
);
$id = 56; // int | Идентификатор потенциального сотрудника
try {
$result = $apiInstance->apiV2CandidateIdGet($id);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling CandidateApi->apiV2CandidateIdGet: ', $e->getMessage(), PHP_EOL;
}
Name | Type | Description | Notes |
---|---|---|---|
id | int | Идентификатор потенциального сотрудника |
\MagDv\Cargomart\Dto\CandidateResponse
CookieTokenAuth, HeaderAuthorizationAuth
- Content-Type: Not defined
- Accept:
application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
apiV2CandidateIdPost($id, $candidate_request): \MagDv\Cargomart\Dto\WorkerResponse
Создать сотрудника из потенциального сотрудника.
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: CookieTokenAuth
$config = MagDv\Cargomart\Configuration::getDefaultConfiguration()->setApiKey('token', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = MagDv\Cargomart\Configuration::getDefaultConfiguration()->setApiKeyPrefix('token', 'Bearer');
// Configure API key authorization: HeaderAuthorizationAuth
$config = MagDv\Cargomart\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = MagDv\Cargomart\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');
$apiInstance = new MagDv\Cargomart\Api\CandidateApi(
// If you want use custom http client, pass your client which implements `Psr\Http\Client\ClientInterface`.
// This is optional, `Psr18ClientDiscovery` will be used to find http client. For instance `GuzzleHttp\Client` implements that interface
new GuzzleHttp\Client(),
$config
);
$id = 56; // int | Идентификатор потенциального сотрудника.
$candidate_request = new \MagDv\Cargomart\Dto\CandidateRequest(); // \MagDv\Cargomart\Dto\CandidateRequest
try {
$result = $apiInstance->apiV2CandidateIdPost($id, $candidate_request);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling CandidateApi->apiV2CandidateIdPost: ', $e->getMessage(), PHP_EOL;
}
Name | Type | Description | Notes |
---|---|---|---|
id | int | Идентификатор потенциального сотрудника. | |
candidate_request | \MagDv\Cargomart\Dto\CandidateRequest | [optional] |
\MagDv\Cargomart\Dto\WorkerResponse
CookieTokenAuth, HeaderAuthorizationAuth
- Content-Type:
application/json
- Accept:
application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]