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 |
Object getSettings(v)
Get Account Settings
// Import classes:
import com.ApiClient;
import com.ApiException;
import com.Configuration;
import com.auth.*;
import com.models.*;
import com.cielo24.AccountApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("https://api.cielo24.com/api");
// Configure API key authorization: ApiKeyAuth
ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth");
ApiKeyAuth.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//ApiKeyAuth.setApiKeyPrefix("Token");
AccountApi apiInstance = new AccountApi(defaultClient);
Integer v = 1; // Integer |
try {
Object result = apiInstance.getSettings(v);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling AccountApi#getSettings");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
v | Integer | [default to 1] |
Object
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Test | - |
LoginResponse login(v, 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 classes:
import com.ApiClient;
import com.ApiException;
import com.Configuration;
import com.models.*;
import com.cielo24.AccountApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("https://api.cielo24.com/api");
AccountApi apiInstance = new AccountApi(defaultClient);
Integer v = 1; // Integer |
LoginBody loginBody = new LoginBody(); // LoginBody |
try {
LoginResponse result = apiInstance.login(v, loginBody);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling AccountApi#login");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
v | Integer | [default to 1] | |
loginBody | LoginBody |
No authorization required
- Content-Type: application/json
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Success | - |
400 | An error occurred | - |
logout(v)
Logout of the current session, invalidating the API token.
// Import classes:
import com.ApiClient;
import com.ApiException;
import com.Configuration;
import com.auth.*;
import com.models.*;
import com.cielo24.AccountApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("https://api.cielo24.com/api");
// Configure API key authorization: ApiKeyAuth
ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth");
ApiKeyAuth.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//ApiKeyAuth.setApiKeyPrefix("Token");
AccountApi apiInstance = new AccountApi(defaultClient);
Integer v = 1; // Integer |
try {
apiInstance.logout(v);
} catch (ApiException e) {
System.err.println("Exception when calling AccountApi#logout");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
v | Integer | [default to 1] |
null (empty response body)
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
204 | Success | - |
400 | An error occurred | - |
VerifyKeyResponse verifyKey(v)
Test Auth
// Import classes:
import com.ApiClient;
import com.ApiException;
import com.Configuration;
import com.auth.*;
import com.models.*;
import com.cielo24.AccountApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("https://api.cielo24.com/api");
// Configure API key authorization: ApiKeyAuth
ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth");
ApiKeyAuth.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//ApiKeyAuth.setApiKeyPrefix("Token");
AccountApi apiInstance = new AccountApi(defaultClient);
Integer v = 1; // Integer |
try {
VerifyKeyResponse result = apiInstance.verifyKey(v);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling AccountApi#verifyKey");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
v | Integer | [default to 1] |
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Test | - |