All URIs are relative to http://localhost, except if the operation defines another base path.
Method | HTTP request | Description |
---|---|---|
getMeResource() | GET /3/me | Retrieve user information Use this endpoint to retrieve user information related to the used access token |
getMeResource(): \FortnoxApi\Model\MeWrap
Retrieve user information Use this endpoint to retrieve user information related to the used access token
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$apiInstance = new FortnoxApi\Api\MeResourceApi(
// 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()
);
try {
$result = $apiInstance->getMeResource();
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling MeResourceApi->getMeResource: ', $e->getMessage(), PHP_EOL;
}
This endpoint does not need any parameter.
No authorization required
- Content-Type: Not defined
- Accept:
application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]