All URIs are relative to https://api.mindbodyonline.com
Method | HTTP request | Description |
---|---|---|
userTokenIssue | POST /public/v{version}/usertoken/issue | Get a staff user token. |
userTokenRevoke | DELETE /public/v{version}/usertoken/revoke | Revoke a user token. |
\Swagger\Client\Model\IssueResponse userTokenIssue($request, $site_id, $version)
Get a staff user token.
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$apiInstance = new Swagger\Client\Api\UserTokenApi(
// 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()
);
$request = new \Swagger\Client\Model\IssueRequest(); // \Swagger\Client\Model\IssueRequest |
$site_id = "site_id_example"; // string | ID of the site from which to pull data.
$version = "version_example"; // string |
try {
$result = $apiInstance->userTokenIssue($request, $site_id, $version);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling UserTokenApi->userTokenIssue: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
request | \Swagger\Client\Model\IssueRequest | ||
site_id | string | ID of the site from which to pull data. | |
version | string |
\Swagger\Client\Model\IssueResponse
No authorization required
- Content-Type: application/json, text/json, application/xml, text/xml, application/x-www-form-urlencoded, multipart/form-data
- Accept: application/json, text/json, application/xml, text/xml, multipart/form-data
[Back to top] [Back to API list] [Back to Model list] [Back to README]
object userTokenRevoke($site_id, $version, $authorization)
Revoke a user token.
Revokes the user token in the Authorization header.
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$apiInstance = new Swagger\Client\Api\UserTokenApi(
// 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()
);
$site_id = "site_id_example"; // string | ID of the site from which to pull data.
$version = "version_example"; // string |
$authorization = ""; // string | A staff user authorization token.
try {
$result = $apiInstance->userTokenRevoke($site_id, $version, $authorization);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling UserTokenApi->userTokenRevoke: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
site_id | string | ID of the site from which to pull data. | |
version | string | ||
authorization | string | A staff user authorization token. | [optional] [default to ] |
object
No authorization required
- Content-Type: Not defined
- Accept: application/json, text/json, application/xml, text/xml, multipart/form-data
[Back to top] [Back to API list] [Back to Model list] [Back to README]