Skip to content

Latest commit

 

History

History
114 lines (81 loc) · 3.77 KB

UserTokenApi.md

File metadata and controls

114 lines (81 loc) · 3.77 KB

Swagger\Client\UserTokenApi

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.

userTokenIssue

\Swagger\Client\Model\IssueResponse userTokenIssue($request, $site_id, $version)

Get a staff user token.

Example

<?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;
}
?>

Parameters

Name Type Description Notes
request \Swagger\Client\Model\IssueRequest
site_id string ID of the site from which to pull data.
version string

Return type

\Swagger\Client\Model\IssueResponse

Authorization

No authorization required

HTTP request headers

  • 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]

userTokenRevoke

object userTokenRevoke($site_id, $version, $authorization)

Revoke a user token.

Revokes the user token in the Authorization header.

Example

<?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;
}
?>

Parameters

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 ]

Return type

object

Authorization

No authorization required

HTTP request headers

  • 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]