Sha256: 9c6dcffc8886409837c0807c0c9cc5d5f94a6c43ed92ec9bf1cd082c0fa6281f
Contents?: true
Size: 1.84 KB
Versions: 5
Compression:
Stored size: 1.84 KB
Contents
# FattureInCloud_Ruby_Sdk::EmailsApi All URIs are relative to *https://api-v2.fattureincloud.it* | Method | HTTP request | Description | | ------ | ------------ | ----------- | | [**list_emails**](EmailsApi.md#list_emails) | **GET** /c/{company_id}/emails | List Emails | ## list_emails > <ListEmailsResponse> list_emails(company_id) List Emails List Emails. ### 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::EmailsApi.new company_id = 12345 # Integer | The ID of the company. begin # List Emails result = api_instance.list_emails(company_id) p result rescue FattureInCloud_Ruby_Sdk::ApiError => e puts "Error when calling EmailsApi->list_emails: #{e}" end ``` #### Using the list_emails_with_http_info variant This returns an Array which contains the response data, status code and headers. > <Array(<ListEmailsResponse>, Integer, Hash)> list_emails_with_http_info(company_id) ```ruby begin # List Emails data, status_code, headers = api_instance.list_emails_with_http_info(company_id) p status_code # => 2xx p headers # => { ... } p data # => <ListEmailsResponse> rescue FattureInCloud_Ruby_Sdk::ApiError => e puts "Error when calling EmailsApi->list_emails_with_http_info: #{e}" end ``` ### Parameters | Name | Type | Description | Notes | | ---- | ---- | ----------- | ----- | | **company_id** | **Integer** | The ID of the company. | | ### Return type [**ListEmailsResponse**](ListEmailsResponse.md) ### Authorization [OAuth2AuthenticationCodeFlow](../README.md#OAuth2AuthenticationCodeFlow) ### HTTP request headers - **Content-Type**: Not defined - **Accept**: application/json
Version data entries
5 entries across 5 versions & 1 rubygems