All URIs are relative to https://api-v2.fattureincloud.it, except if the operation defines another base path.
Method | HTTP request | Description |
---|---|---|
getCompanyInfo() | GET /c/{company_id}/company/info | Get Company Info |
getCompanyPlanUsage() | GET /c/{company_id}/company/plan_usage | Get Company Plan Usage |
getCompanyInfo($company_id): \FattureInCloud\Model\GetCompanyInfoResponse
Get Company Info
Gets the company detailed 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\CompaniesApi(
// 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
);
$company_id = 12345; // int | The ID of the company.
try {
$result = $apiInstance->getCompanyInfo($company_id);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling CompaniesApi->getCompanyInfo: ', $e->getMessage(), PHP_EOL;
}
Name | Type | Description | Notes |
---|---|---|---|
company_id | int | The ID of the company. |
\FattureInCloud\Model\GetCompanyInfoResponse
- Content-Type: Not defined
- Accept:
application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
getCompanyPlanUsage($company_id, $category): \FattureInCloud\Model\GetCompanyPlanUsageResponse
Get Company Plan Usage
Gets the company limits usage.
<?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\CompaniesApi(
// 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
);
$company_id = 12345; // int | The ID of the company.
$category = 'category_example'; // string | Category
try {
$result = $apiInstance->getCompanyPlanUsage($company_id, $category);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling CompaniesApi->getCompanyPlanUsage: ', $e->getMessage(), PHP_EOL;
}
Name | Type | Description | Notes |
---|---|---|---|
company_id | int | The ID of the company. | |
category | string | Category |
\FattureInCloud\Model\GetCompanyPlanUsageResponse
- Content-Type: Not defined
- Accept:
application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]