Skip to content

Latest commit

 

History

History
100 lines (60 loc) · 2.06 KB

UserApi.md

File metadata and controls

100 lines (60 loc) · 2.06 KB

UserApi

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

Method HTTP request Description
getUserInfo GET /user/info Get User Info
listUserCompanies GET /user/companies List User Companies

getUserInfo

GetUserInfoResponse getUserInfo()

Get User Info

Gets the current user's info.

Example

import { Configuration, UserApi  } from '@fattureincloud/fattureincloud-ts-sdk';

// Configure OAuth2 access token for authorization: 
const apiConfig = new Configuration({
  accessToken: "YOUR ACCESS TOKEN"
});

let apiInstance = new UserApi(apiConfig);
apiInstance.getUserInfo().then((data) => {
  console.log('API called successfully. Returned data: ' + data);
}, (error) => {
  console.error(error);
});

Parameters

This endpoint does not need any parameter.

Return type

GetUserInfoResponse

Authorization

OAuth2AuthenticationCodeFlow

HTTP request headers

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

listUserCompanies

ListUserCompaniesResponse listUserCompanies()

List User Companies

Lists the companies controlled by the current user.

Example

import { Configuration, UserApi  } from '@fattureincloud/fattureincloud-ts-sdk';

// Configure OAuth2 access token for authorization: 
const apiConfig = new Configuration({
  accessToken: "YOUR ACCESS TOKEN"
});

let apiInstance = new UserApi(apiConfig);
apiInstance.listUserCompanies().then((data) => {
  console.log('API called successfully. Returned data: ' + data);
}, (error) => {
  console.error(error);
});

Parameters

This endpoint does not need any parameter.

Return type

ListUserCompaniesResponse

Authorization

OAuth2AuthenticationCodeFlow

HTTP request headers

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