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 |
GetUserInfoResponse getUserInfo()
Get User Info
Gets the current user's info.
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);
});
This endpoint does not need any parameter.
- Content-Type: Not defined
- Accept: application/json
ListUserCompaniesResponse listUserCompanies()
List User Companies
Lists the companies controlled by the current user.
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);
});
This endpoint does not need any parameter.
- Content-Type: Not defined
- Accept: application/json