All URIs are relative to https://api.cielo24.com/api
Method | HTTP request | Description |
---|---|---|
getSettings | GET /account/get_settings | |
login | POST /account/login | |
logout | POST /account/logout | |
verifyKey | GET /account/verify_key |
any getSettings()
Get Account Settings
import { } from 'cielo24';
import * as fs from 'fs';
const configuration = .createConfiguration();
const apiInstance = new .AccountApi(configuration);
let body:.AccountApiGetSettingsRequest = {
// number
v: 1,
};
apiInstance.getSettings(body).then((data:any) => {
console.log('API called successfully. Returned data: ' + data);
}).catch((error:any) => console.error(error));
Name | Type | Description | Notes |
---|---|---|---|
v | [number] | defaults to 1 |
any
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Test | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
LoginResponse login(loginBody)
Login to the cielo24 API to obtain an API access token for use when calling other methods. Optional arguments may be passed either as HTTP headers or query string parameters. Required arguments must be passed as query string parameters.
import { } from 'cielo24';
import * as fs from 'fs';
const configuration = .createConfiguration();
const apiInstance = new .AccountApi(configuration);
let body:.AccountApiLoginRequest = {
// number
v: 1,
// LoginBody
loginBody: {
username: "username_example",
password: "password_example",
securekey: "securekey_example",
},
};
apiInstance.login(body).then((data:any) => {
console.log('API called successfully. Returned data: ' + data);
}).catch((error:any) => console.error(error));
Name | Type | Description | Notes |
---|---|---|---|
loginBody | LoginBody | ||
v | [number] | defaults to 1 |
LoginResponse
No authorization required
- Content-Type: application/json
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Success | - |
400 | An error occurred | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
void logout()
Logout of the current session, invalidating the API token.
import { } from 'cielo24';
import * as fs from 'fs';
const configuration = .createConfiguration();
const apiInstance = new .AccountApi(configuration);
let body:.AccountApiLogoutRequest = {
// number
v: 1,
};
apiInstance.logout(body).then((data:any) => {
console.log('API called successfully. Returned data: ' + data);
}).catch((error:any) => console.error(error));
Name | Type | Description | Notes |
---|---|---|---|
v | [number] | defaults to 1 |
void
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
204 | Success | - |
400 | An error occurred | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
VerifyKeyResponse verifyKey()
Test Auth
import { } from 'cielo24';
import * as fs from 'fs';
const configuration = .createConfiguration();
const apiInstance = new .AccountApi(configuration);
let body:.AccountApiVerifyKeyRequest = {
// number
v: 1,
};
apiInstance.verifyKey(body).then((data:any) => {
console.log('API called successfully. Returned data: ' + data);
}).catch((error:any) => console.error(error));
Name | Type | Description | Notes |
---|---|---|---|
v | [number] | defaults to 1 |
VerifyKeyResponse
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Test | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]