Skip to content

Latest commit

 

History

History
128 lines (87 loc) · 3.73 KB

CompaniesApi.md

File metadata and controls

128 lines (87 loc) · 3.73 KB

FattureInCloud\CompaniesApi

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

getCompanyInfo($company_id): \FattureInCloud\Model\GetCompanyInfoResponse

Get Company Info

Gets the company detailed info.

Example

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

Parameters

Name Type Description Notes
company_id int The ID of the company.

Return type

\FattureInCloud\Model\GetCompanyInfoResponse

Authorization

OAuth2AuthenticationCodeFlow

HTTP request headers

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

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

getCompanyPlanUsage()

getCompanyPlanUsage($company_id, $category): \FattureInCloud\Model\GetCompanyPlanUsageResponse

Get Company Plan Usage

Gets the company limits usage.

Example

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

Parameters

Name Type Description Notes
company_id int The ID of the company.
category string Category

Return type

\FattureInCloud\Model\GetCompanyPlanUsageResponse

Authorization

OAuth2AuthenticationCodeFlow

HTTP request headers

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

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