All URIs are relative to https://api-v2.fattureincloud.it, except if the operation defines another base path.
Method | HTTP request | Description |
---|---|---|
getUserInfo() | GET /user/info | Get User Info |
listUserCompanies() | GET /user/companies | List User Companies |
getUserInfo(): \FattureInCloud\Model\GetUserInfoResponse
Get User Info
Gets the current user's info.
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure OAuth2 access token for authorization: OAuth2AuthenticationCodeFlow
$config = FattureInCloud\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
$apiInstance = new FattureInCloud\Api\UserApi(
// 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(),
$config
);
try {
$result = $apiInstance->getUserInfo();
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling UserApi->getUserInfo: ', $e->getMessage(), PHP_EOL;
}
This endpoint does not need any parameter.
\FattureInCloud\Model\GetUserInfoResponse
- Content-Type: Not defined
- Accept:
application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
listUserCompanies(): \FattureInCloud\Model\ListUserCompaniesResponse
List User Companies
Lists the companies controlled by the current user.
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure OAuth2 access token for authorization: OAuth2AuthenticationCodeFlow
$config = FattureInCloud\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
$apiInstance = new FattureInCloud\Api\UserApi(
// 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(),
$config
);
try {
$result = $apiInstance->listUserCompanies();
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling UserApi->listUserCompanies: ', $e->getMessage(), PHP_EOL;
}
This endpoint does not need any parameter.
\FattureInCloud\Model\ListUserCompaniesResponse
- Content-Type: Not defined
- Accept:
application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]