Sha256: 86d14d1845b14a5874ba24fd00694f1cebfad8bc65be7de7fb012352d545f7c0

Contents?: true

Size: 1.97 KB

Versions: 19

Compression:

Stored size: 1.97 KB

Contents

# FattureInCloud_Ruby_Sdk::CompaniesApi

All URIs are relative to *https://api-v2.fattureincloud.it*

| Method | HTTP request | Description |
| ------ | ------------ | ----------- |
| [**get_company_info**](CompaniesApi.md#get_company_info) | **GET** /c/{company_id}/company/info | Get Company Info |


## get_company_info

> <GetCompanyInfoResponse> get_company_info(company_id)

Get Company Info

Gets the company detailed info.

### Examples

```ruby
require 'time'
require 'fattureincloud_ruby_sdk'
# setup authorization
FattureInCloud_Ruby_Sdk.configure do |config|
  # Configure OAuth2 access token for authorization: OAuth2AuthenticationCodeFlow
  config.access_token = 'YOUR ACCESS TOKEN'
end

api_instance = FattureInCloud_Ruby_Sdk::CompaniesApi.new
company_id = 12345 # Integer | The ID of the company.

begin
  # Get Company Info
  result = api_instance.get_company_info(company_id)
  p result
rescue FattureInCloud_Ruby_Sdk::ApiError => e
  puts "Error when calling CompaniesApi->get_company_info: #{e}"
end
```

#### Using the get_company_info_with_http_info variant

This returns an Array which contains the response data, status code and headers.

> <Array(<GetCompanyInfoResponse>, Integer, Hash)> get_company_info_with_http_info(company_id)

```ruby
begin
  # Get Company Info
  data, status_code, headers = api_instance.get_company_info_with_http_info(company_id)
  p status_code # => 2xx
  p headers # => { ... }
  p data # => <GetCompanyInfoResponse>
rescue FattureInCloud_Ruby_Sdk::ApiError => e
  puts "Error when calling CompaniesApi->get_company_info_with_http_info: #{e}"
end
```

### Parameters

| Name | Type | Description | Notes |
| ---- | ---- | ----------- | ----- |
| **company_id** | **Integer** | The ID of the company. |  |

### Return type

[**GetCompanyInfoResponse**](GetCompanyInfoResponse.md)

### Authorization

[OAuth2AuthenticationCodeFlow](../README.md#OAuth2AuthenticationCodeFlow)

### HTTP request headers

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

Version data entries

19 entries across 19 versions & 1 rubygems

Version Path
fattureincloud_ruby_sdk-2.0.19 docs/CompaniesApi.md
fattureincloud_ruby_sdk-2.0.18 docs/CompaniesApi.md
fattureincloud_ruby_sdk-2.0.17 docs/CompaniesApi.md
fattureincloud_ruby_sdk-2.0.16 docs/CompaniesApi.md
fattureincloud_ruby_sdk-2.0.15 docs/CompaniesApi.md
fattureincloud_ruby_sdk-2.0.14 docs/CompaniesApi.md
fattureincloud_ruby_sdk-2.0.13 docs/CompaniesApi.md
fattureincloud_ruby_sdk-2.0.12 docs/CompaniesApi.md
fattureincloud_ruby_sdk-2.0.11 docs/CompaniesApi.md
fattureincloud_ruby_sdk-2.0.10 docs/CompaniesApi.md
fattureincloud_ruby_sdk-2.0.9 docs/CompaniesApi.md
fattureincloud_ruby_sdk-2.0.8 docs/CompaniesApi.md
fattureincloud_ruby_sdk-2.0.7 docs/CompaniesApi.md
fattureincloud_ruby_sdk-2.0.6 docs/CompaniesApi.md
fattureincloud_ruby_sdk-2.0.5 docs/CompaniesApi.md
fattureincloud_ruby_sdk-2.0.4 docs/CompaniesApi.md
fattureincloud_ruby_sdk-2.0.3 docs/CompaniesApi.md
fattureincloud_ruby_sdk-2.0.2 docs/CompaniesApi.md
fattureincloud_ruby_sdk-2.0.1 docs/CompaniesApi.md