Method | HTTP request | Description |
---|---|---|
addUser | POST /users | Create a new user |
getCurrentUser | GET /users/current | Gets the current user |
getFavoriteFiltersForCurrentUser | GET /users/current/favoritefilters | Gets the current user's favorite filters |
getUser | GET /users/{userId} | Get the user with the specified ID |
getUsers | GET /users | Get all users |
putUser | PUT /users/{userId} | Update the user with the specified ID |
setActiveStatus | PUT /users/{userId}/active | Update the active status for the user with the specified ID |
CreatedResponse addUser(body)
Create a new user
// Import classes:
//import io.swagger.client.ApiClient;
//import io.swagger.client.ApiException;
//import io.swagger.client.Configuration;
//import io.swagger.client.auth.*;
//import io.swagger.client.api.UsersApi;
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure HTTP basic authorization: basic
HttpBasicAuth basic = (HttpBasicAuth) defaultClient.getAuthentication("basic");
basic.setUsername("YOUR USERNAME");
basic.setPassword("YOUR PASSWORD");
// Configure OAuth2 access token for authorization: oauth2
OAuth oauth2 = (OAuth) defaultClient.getAuthentication("oauth2");
oauth2.setAccessToken("YOUR ACCESS TOKEN");
UsersApi apiInstance = new UsersApi();
RequestUser body = new RequestUser(); // RequestUser |
try {
CreatedResponse result = apiInstance.addUser(body);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling UsersApi#addUser");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
body | RequestUser |
- Content-Type: application/json
- Accept: application/json
UserDataWrapper getCurrentUser(include)
Gets the current user
// Import classes:
//import io.swagger.client.ApiClient;
//import io.swagger.client.ApiException;
//import io.swagger.client.Configuration;
//import io.swagger.client.auth.*;
//import io.swagger.client.api.UsersApi;
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure HTTP basic authorization: basic
HttpBasicAuth basic = (HttpBasicAuth) defaultClient.getAuthentication("basic");
basic.setUsername("YOUR USERNAME");
basic.setPassword("YOUR PASSWORD");
// Configure OAuth2 access token for authorization: oauth2
OAuth oauth2 = (OAuth) defaultClient.getAuthentication("oauth2");
oauth2.setAccessToken("YOUR ACCESS TOKEN");
UsersApi apiInstance = new UsersApi();
List<String> include = Arrays.asList("include_example"); // List<String> | Links to include as full objects in the linked map
try {
UserDataWrapper result = apiInstance.getCurrentUser(include);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling UsersApi#getCurrentUser");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
include | List<String> | Links to include as full objects in the linked map | [optional] |
- Content-Type: application/json
- Accept: application/json
FilterDataListWrapper getFavoriteFiltersForCurrentUser(startAt, maxResults, include)
Gets the current user's favorite filters
// Import classes:
//import io.swagger.client.ApiClient;
//import io.swagger.client.ApiException;
//import io.swagger.client.Configuration;
//import io.swagger.client.auth.*;
//import io.swagger.client.api.UsersApi;
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure HTTP basic authorization: basic
HttpBasicAuth basic = (HttpBasicAuth) defaultClient.getAuthentication("basic");
basic.setUsername("YOUR USERNAME");
basic.setPassword("YOUR PASSWORD");
// Configure OAuth2 access token for authorization: oauth2
OAuth oauth2 = (OAuth) defaultClient.getAuthentication("oauth2");
oauth2.setAccessToken("YOUR ACCESS TOKEN");
UsersApi apiInstance = new UsersApi();
Integer startAt = 56; // Integer |
Integer maxResults = 56; // Integer | If not set, this defaults to 20. This cannot be larger than 50
List<String> include = Arrays.asList("include_example"); // List<String> | Links to include as full objects in the linked map
try {
FilterDataListWrapper result = apiInstance.getFavoriteFiltersForCurrentUser(startAt, maxResults, include);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling UsersApi#getFavoriteFiltersForCurrentUser");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
startAt | Integer | [optional] | |
maxResults | Integer | If not set, this defaults to 20. This cannot be larger than 50 | [optional] |
include | List<String> | Links to include as full objects in the linked map | [optional] |
- Content-Type: application/json
- Accept: application/json
UserDataWrapper getUser(userId, include)
Get the user with the specified ID
// Import classes:
//import io.swagger.client.ApiClient;
//import io.swagger.client.ApiException;
//import io.swagger.client.Configuration;
//import io.swagger.client.auth.*;
//import io.swagger.client.api.UsersApi;
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure HTTP basic authorization: basic
HttpBasicAuth basic = (HttpBasicAuth) defaultClient.getAuthentication("basic");
basic.setUsername("YOUR USERNAME");
basic.setPassword("YOUR PASSWORD");
// Configure OAuth2 access token for authorization: oauth2
OAuth oauth2 = (OAuth) defaultClient.getAuthentication("oauth2");
oauth2.setAccessToken("YOUR ACCESS TOKEN");
UsersApi apiInstance = new UsersApi();
Integer userId = 56; // Integer |
List<String> include = Arrays.asList("include_example"); // List<String> | Links to include as full objects in the linked map
try {
UserDataWrapper result = apiInstance.getUser(userId, include);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling UsersApi#getUser");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
userId | Integer | ||
include | List<String> | Links to include as full objects in the linked map | [optional] |
- Content-Type: application/json
- Accept: application/json
UserDataListWrapper getUsers(username, email, firstName, lastName, includeInactive, startAt, maxResults, include)
Get all users
// Import classes:
//import io.swagger.client.ApiClient;
//import io.swagger.client.ApiException;
//import io.swagger.client.Configuration;
//import io.swagger.client.auth.*;
//import io.swagger.client.api.UsersApi;
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure HTTP basic authorization: basic
HttpBasicAuth basic = (HttpBasicAuth) defaultClient.getAuthentication("basic");
basic.setUsername("YOUR USERNAME");
basic.setPassword("YOUR PASSWORD");
// Configure OAuth2 access token for authorization: oauth2
OAuth oauth2 = (OAuth) defaultClient.getAuthentication("oauth2");
oauth2.setAccessToken("YOUR ACCESS TOKEN");
UsersApi apiInstance = new UsersApi();
String username = "username_example"; // String |
String email = "email_example"; // String |
String firstName = "firstName_example"; // String |
String lastName = "lastName_example"; // String |
Boolean includeInactive = true; // Boolean |
Integer startAt = 56; // Integer |
Integer maxResults = 56; // Integer | If not set, this defaults to 20. This cannot be larger than 50
List<String> include = Arrays.asList("include_example"); // List<String> | Links to include as full objects in the linked map
try {
UserDataListWrapper result = apiInstance.getUsers(username, email, firstName, lastName, includeInactive, startAt, maxResults, include);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling UsersApi#getUsers");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
username | String | [optional] | |
String | [optional] | ||
firstName | String | [optional] | |
lastName | String | [optional] | |
includeInactive | Boolean | [optional] | |
startAt | Integer | [optional] | |
maxResults | Integer | If not set, this defaults to 20. This cannot be larger than 50 | [optional] |
include | List<String> | Links to include as full objects in the linked map | [optional] |
- Content-Type: application/json
- Accept: application/json
AbstractRestResponse putUser(body, userId)
Update the user with the specified ID
// Import classes:
//import io.swagger.client.ApiClient;
//import io.swagger.client.ApiException;
//import io.swagger.client.Configuration;
//import io.swagger.client.auth.*;
//import io.swagger.client.api.UsersApi;
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure HTTP basic authorization: basic
HttpBasicAuth basic = (HttpBasicAuth) defaultClient.getAuthentication("basic");
basic.setUsername("YOUR USERNAME");
basic.setPassword("YOUR PASSWORD");
// Configure OAuth2 access token for authorization: oauth2
OAuth oauth2 = (OAuth) defaultClient.getAuthentication("oauth2");
oauth2.setAccessToken("YOUR ACCESS TOKEN");
UsersApi apiInstance = new UsersApi();
RequestUser body = new RequestUser(); // RequestUser |
Integer userId = 56; // Integer |
try {
AbstractRestResponse result = apiInstance.putUser(body, userId);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling UsersApi#putUser");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
body | RequestUser | ||
userId | Integer |
- Content-Type: application/json
- Accept: application/json
AbstractRestResponse setActiveStatus(body, userId)
Update the active status for the user with the specified ID
// Import classes:
//import io.swagger.client.ApiClient;
//import io.swagger.client.ApiException;
//import io.swagger.client.Configuration;
//import io.swagger.client.auth.*;
//import io.swagger.client.api.UsersApi;
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure HTTP basic authorization: basic
HttpBasicAuth basic = (HttpBasicAuth) defaultClient.getAuthentication("basic");
basic.setUsername("YOUR USERNAME");
basic.setPassword("YOUR PASSWORD");
// Configure OAuth2 access token for authorization: oauth2
OAuth oauth2 = (OAuth) defaultClient.getAuthentication("oauth2");
oauth2.setAccessToken("YOUR ACCESS TOKEN");
UsersApi apiInstance = new UsersApi();
RequestActiveStatus body = new RequestActiveStatus(); // RequestActiveStatus |
Integer userId = 56; // Integer |
try {
AbstractRestResponse result = apiInstance.setActiveStatus(body, userId);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling UsersApi#setActiveStatus");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
body | RequestActiveStatus | ||
userId | Integer |
- Content-Type: application/json
- Accept: application/json