Skip to content

Latest commit

 

History

History
59 lines (38 loc) · 1.5 KB

MeResourceApi.md

File metadata and controls

59 lines (38 loc) · 1.5 KB

FortnoxApi\MeResourceApi

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()

getMeResource(): \FortnoxApi\Model\MeWrap

Retrieve user information Use this endpoint to retrieve user information related to the used access token

Example

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

Parameters

This endpoint does not need any parameter.

Return type

\FortnoxApi\Model\MeWrap

Authorization

No authorization required

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

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