All URIs are relative to https://YOUR_SUPLA_SERVER/api/v3
.
Method | HTTP request | Description |
---|---|---|
issueAccessToken() | POST /oauth/v2/token | Issues an access token based on authorization_code or refresh_token. |
issueAccessToken($accessTokenRequestBody): \Supla\ApiClient\Model\InlineResponse2003
Issues an access token based on authorization_code or refresh_token.
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$apiInstance = new Supla\ApiClient\Api\OAuthApi(
// 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()
);
$accessTokenRequestBody = new \Supla\ApiClient\Model\AccessTokenRequestBody(); // \Supla\ApiClient\Model\AccessTokenRequestBody
try {
$result = $apiInstance->issueAccessToken($accessTokenRequestBody);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling OAuthApi->issueAccessToken: ', $e->getMessage(), PHP_EOL;
}
Name | Type | Description | Notes |
---|---|---|---|
accessTokenRequestBody | \Supla\ApiClient\Model\AccessTokenRequestBody |
\Supla\ApiClient\Model\InlineResponse2003
No authorization required
- Content-Type:
application/json
- Accept:
application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]