Skip to content

Latest commit

 

History

History
71 lines (48 loc) · 2.05 KB

AuthenticationApi.md

File metadata and controls

71 lines (48 loc) · 2.05 KB

OpenAPI\Client\AuthenticationApi

All URIs are relative to https://openapi.flowaccount.com/v1

Method HTTP request Description
tokenPost POST /token Generate Access Token

tokenPost

\OpenAPI\Client\Model\AuthenResponse tokenPost($content_type, $grant_type, $scope, $client_id, $client_secret)

Generate Access Token

Example

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

Parameters

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]

Return type

\OpenAPI\Client\Model\AuthenResponse

Authorization

No authorization required

HTTP request headers

  • Content-Type: application/x-www-form-urlencoded
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]