All URIs are relative to https://atlas.forsta.io/v1
Method | HTTP request | Description |
---|---|---|
ephemeralTokenCreate | POST /ephemeral-token | Retrieves the ephemeral user token |
ephemeralTokenDelete | DELETE /ephemeral-token | Delete the ephemeral user token |
\Swagger\Client\Model\EphemeralTokenPostResponse ephemeralTokenCreate()
Retrieves the ephemeral user token
Retrieves the current ephemeral user token for the requestors org. The ephemeral token is typically used for creating ephemeral users via our embedded client
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: JSON Web Token
$config = Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');
$apiInstance = new Swagger\Client\Api\EphemeralTokenApi(
// 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->ephemeralTokenCreate();
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling EphemeralTokenApi->ephemeralTokenCreate: ', $e->getMessage(), PHP_EOL;
}
?>
This endpoint does not need any parameter.
\Swagger\Client\Model\EphemeralTokenPostResponse
[JSON Web Token](../../README.md#JSON Web Token)
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
ephemeralTokenDelete()
Delete the ephemeral user token
Sets the ephemeral user token the requestors org to null.
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: JSON Web Token
$config = Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');
$apiInstance = new Swagger\Client\Api\EphemeralTokenApi(
// 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->ephemeralTokenDelete();
} catch (Exception $e) {
echo 'Exception when calling EphemeralTokenApi->ephemeralTokenDelete: ', $e->getMessage(), PHP_EOL;
}
?>
This endpoint does not need any parameter.
void (empty response body)
[JSON Web Token](../../README.md#JSON Web Token)
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]