Skip to content

Latest commit

 

History

History
57 lines (35 loc) · 1.44 KB

EmailsApi.md

File metadata and controls

57 lines (35 loc) · 1.44 KB

fattureInCloudSdk.EmailsApi

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

Method HTTP request Description
listEmails GET /c/{company_id}/emails List Emails

listEmails

ListEmailsResponse listEmails(companyId)

List Emails

List Emails.

Example

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.
apiInstance.listEmails(companyId).then((result) => {
  console.log('API called successfully. Returned result: ' + JSON.stringify(result));
}, (error) => {
  console.error(error);
});

Parameters

Name Type Description Notes
companyId Number The ID of the company.

Return type

ListEmailsResponse

Authorization

OAuth2AuthenticationCodeFlow

HTTP request headers

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