FattureInCloud_Ruby_Sdk::EmailsApi

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

Method HTTP request Description
list_emails GET /c/company_id/emails List Emails

list_emails

list_emails(company_id)

List Emails

List Emails.

Examples

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.

, Integer, Hash)> list_emails_with_http_info(company_id)

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

Authorization

OAuth2AuthenticationCodeFlow

HTTP request headers

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