All URIs are relative to https://api-v2.fattureincloud.it
| Method | HTTP request | Description |
|---|---|---|
| listEmails | GET /c/{company_id}/emails | List Emails |
ListEmailsResponse listEmails(companyId, opts)
List Emails
List Emails.
import fattureInCloudSdk from '@fattureincloud/fattureincloud-js-sdk';
let defaultClient = fattureInCloudSdk.ApiClient.instance;
// Configure OAuth2 access token for authorization: OAuth2AuthenticationCodeFlow
let OAuth2AuthenticationCodeFlow = defaultClient.authentications['OAuth2AuthenticationCodeFlow'];
OAuth2AuthenticationCodeFlow.accessToken = 'YOUR ACCESS TOKEN';
let apiInstance = new fattureInCloudSdk.EmailsApi();
let companyId = 12345; // Number | The ID of the company.
let opts = {
'fields': "fields_example", // String | List of comma-separated fields.
'fieldset': "fieldset_example", // String | Name of the fieldset.
'sort': "sort_example", // String | List of comma-separated fields for result sorting (minus for desc sorting).
'page': 1, // Number | The page to retrieve.
'perPage': 5, // Number | The size of the page.
'q': "q_example" // String | Query for filtering the results.
};
apiInstance.listEmails(companyId, opts).then((result) => {
console.log('API called successfully. Returned result: ' + JSON.stringify(result));
}, (error) => {
console.error(error);
});| Name | Type | Description | Notes |
|---|---|---|---|
| companyId | Number | The ID of the company. | |
| fields | String | List of comma-separated fields. | [optional] |
| fieldset | String | Name of the fieldset. | [optional] |
| sort | String | List of comma-separated fields for result sorting (minus for desc sorting). | [optional] |
| page | Number | The page to retrieve. | [optional] [default to 1] |
| perPage | Number | The size of the page. | [optional] [default to 5] |
| q | String | Query for filtering the results. | [optional] |
- Content-Type: Not defined
- Accept: application/json