All URIs are relative to http://localhost/api
Method | HTTP request | Description |
---|---|---|
accountSignIn | POST /account/signin | Log user into the system |
accountSignOut | POST /account/signout | Log out current logged in user session |
\Swagger\Client\Model\SignInResponse accountSignIn($company_key, $model)
Log user into the system
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$apiInstance = new Swagger\Client\Api\AccountApi(
// 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()
);
$company_key = "company_key_example"; // string | IATA company code \"example G1\"
$model = new \Swagger\Client\Model\Model(); // \Swagger\Client\Model\Model | Sigin model with login information
try {
$result = $apiInstance->accountSignIn($company_key, $model);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling AccountApi->accountSignIn: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
company_key | string | IATA company code "example G1" | |
model | \Swagger\Client\Model\Model | Sigin model with login information |
\Swagger\Client\Model\SignInResponse
No authorization required
- Content-Type: application/json, text/json
- Accept: application/json, text/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
accountSignOut($company_key, $session_id, $session_token)
Log out current logged in user session
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$apiInstance = new Swagger\Client\Api\AccountApi(
// 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()
);
$company_key = "company_key_example"; // string | IATA company code example \"G1\"
$session_id = 8.14; // float | Session id example \"50836\"
$session_token = "session_token_example"; // string | Session token example \"d29608a44094429b8b40723018cd201\"
try {
$apiInstance->accountSignOut($company_key, $session_id, $session_token);
} catch (Exception $e) {
echo 'Exception when calling AccountApi->accountSignOut: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
company_key | string | IATA company code example "G1" | |
session_id | float | Session id example "50836" | |
session_token | string | Session token example "d29608a44094429b8b40723018cd201" |
void (empty response body)
No authorization required
- Content-Type: Not defined
- Accept: Not defined
[Back to top] [Back to API list] [Back to Model list] [Back to README]