All URIs are relative to https://openapi.flowaccount.com/v1
Method | HTTP request | Description |
---|---|---|
tokenPost | POST /token | Generate Access Token |
\OpenAPI\Client\Model\AuthenResponse tokenPost($content_type, $grant_type, $scope, $client_id, $client_secret)
Generate Access Token
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$apiInstance = new OpenAPI\Client\Api\AuthenticationApi(
// 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()
);
$content_type = 'application/x-www-form-urlencoded'; // string |
$grant_type = 'grant_type_example'; // string |
$scope = 'scope_example'; // string |
$client_id = 'client_id_example'; // string |
$client_secret = 'client_secret_example'; // string |
try {
$result = $apiInstance->tokenPost($content_type, $grant_type, $scope, $client_id, $client_secret);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling AuthenticationApi->tokenPost: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
content_type | string | [default to 'application/x-www-form-urlencoded'] | |
grant_type | string | [optional] | |
scope | string | [optional] | |
client_id | string | [optional] | |
client_secret | string | [optional] |
\OpenAPI\Client\Model\AuthenResponse
No authorization required
- Content-Type: application/x-www-form-urlencoded
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]