All URIs are relative to https://app.statflo.com
| Method | HTTP request | Description |
|---|---|---|
| authMe | GET /v4/api/auth/me | |
| login | POST /v4/api/auth/login | |
| logout | GET /v4/api/auth/logout | |
| switchDealer | GET /v4/api/auth/switch | |
| switchDealerPost | POST /v4/api/auth/switch |
User authMe()
Get currently logged in user.
// Import classes:
//import com.statflo.client.ApiClient;
//import com.statflo.client.ApiException;
//import com.statflo.client.Configuration;
//import com.statflo.client.auth.*;
//import com.statflo.client.api.AuthenticationApi;
ApiClient defaultClient = Configuration.getDefaultApiClient();
AuthenticationApi apiInstance = new AuthenticationApi();
try {
User result = apiInstance.authMe();
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling AuthenticationApi#authMe");
e.printStackTrace();
}This endpoint does not need any parameter.
- Content-Type: Not defined
- Accept: application/json
InlineResponse200 login(body)
Log in.
// Import classes:
//import com.statflo.client.ApiClient;
//import com.statflo.client.ApiException;
//import com.statflo.client.Configuration;
//import com.statflo.client.auth.*;
//import com.statflo.client.api.AuthenticationApi;
ApiClient defaultClient = Configuration.getDefaultApiClient();
AuthenticationApi apiInstance = new AuthenticationApi();
AuthLoginBody body = new AuthLoginBody(); // AuthLoginBody |
try {
InlineResponse200 result = apiInstance.login(body);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling AuthenticationApi#login");
e.printStackTrace();
}| Name | Type | Description | Notes |
|---|---|---|---|
| body | AuthLoginBody | [optional] |
- Content-Type: application/json
- Accept: application/json
logout()
Log out.
// Import classes:
//import com.statflo.client.ApiClient;
//import com.statflo.client.ApiException;
//import com.statflo.client.Configuration;
//import com.statflo.client.auth.*;
//import com.statflo.client.api.AuthenticationApi;
ApiClient defaultClient = Configuration.getDefaultApiClient();
AuthenticationApi apiInstance = new AuthenticationApi();
try {
apiInstance.logout();
} catch (ApiException e) {
System.err.println("Exception when calling AuthenticationApi#logout");
e.printStackTrace();
}This endpoint does not need any parameter.
null (empty response body)
- Content-Type: Not defined
- Accept: Not defined
switchDealer(dealerId, roleId)
Switch active dealer.
// Import classes:
//import com.statflo.client.ApiClient;
//import com.statflo.client.ApiException;
//import com.statflo.client.Configuration;
//import com.statflo.client.auth.*;
//import com.statflo.client.api.AuthenticationApi;
ApiClient defaultClient = Configuration.getDefaultApiClient();
AuthenticationApi apiInstance = new AuthenticationApi();
Integer dealerId = 56; // Integer |
Integer roleId = 56; // Integer |
try {
apiInstance.switchDealer(dealerId, roleId);
} catch (ApiException e) {
System.err.println("Exception when calling AuthenticationApi#switchDealer");
e.printStackTrace();
}| Name | Type | Description | Notes |
|---|---|---|---|
| dealerId | Integer | [optional] | |
| roleId | Integer | [optional] |
null (empty response body)
- Content-Type: Not defined
- Accept: application/json
User switchDealerPost(body)
Switch active dealer.
// Import classes:
//import com.statflo.client.ApiClient;
//import com.statflo.client.ApiException;
//import com.statflo.client.Configuration;
//import com.statflo.client.auth.*;
//import com.statflo.client.api.AuthenticationApi;
ApiClient defaultClient = Configuration.getDefaultApiClient();
AuthenticationApi apiInstance = new AuthenticationApi();
AuthSwitchBody body = new AuthSwitchBody(); // AuthSwitchBody |
try {
User result = apiInstance.switchDealerPost(body);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling AuthenticationApi#switchDealerPost");
e.printStackTrace();
}| Name | Type | Description | Notes |
|---|---|---|---|
| body | AuthSwitchBody | [optional] |
- Content-Type: application/json
- Accept: application/json