# DefaultApi
All URIs are relative to *http://localhost/api*
Method | HTTP request | Description
------------- | ------------- | -------------
[**addCurrentUserPrivilege**](DefaultApi.md#addCurrentUserPrivilege) | **POST** /users/current/privileges | Add a privilege for the specified user.
[**addLocations**](DefaultApi.md#addLocations) | **POST** /devices/current/locations | Updates the locations of the current device.
[**addNotice**](DefaultApi.md#addNotice) | **POST** /notices | Adds a new notice and returns the notice as well as its location.
[**addUser**](DefaultApi.md#addUser) | **POST** /users | Adds a user account with the specified roles and emails.
[**addUserPrivilege**](DefaultApi.md#addUserPrivilege) | **POST** /users/{id}/privileges | Returns the privileges for a particular user.
[**createDevice**](DefaultApi.md#createDevice) | **POST** /devices | Creates a new device and returns its handle.
[**createShare**](DefaultApi.md#createShare) | **POST** /shares | Creates a new share.
[**deleteCurrentDevice**](DefaultApi.md#deleteCurrentDevice) | **DELETE** /devices/current | Deletes the current device.
[**deleteDevice**](DefaultApi.md#deleteDevice) | **DELETE** /devices/{id} | Deletes a device.
[**deletePrivilege**](DefaultApi.md#deletePrivilege) | **DELETE** /privileges/{id} | Deletes a particular privilege.
[**deleteShare**](DefaultApi.md#deleteShare) | **DELETE** /shares/{id} | Delete a share.
[**getActiveNotices**](DefaultApi.md#getActiveNotices) | **GET** /notices/active | Returns a page of notices.
[**getBuildVersion**](DefaultApi.md#getBuildVersion) | **GET** /versions/build | Returns the build version.
[**getCurrentDevice**](DefaultApi.md#getCurrentDevice) | **GET** /devices/current | Returns the current device.
[**getCurrentUser**](DefaultApi.md#getCurrentUser) | **GET** /users/current | Returns the user currently authorized.
[**getCurrentUserDevices**](DefaultApi.md#getCurrentUserDevices) | **GET** /users/current/devices | Returns the list of devices for the current user.
[**getCurrentUserPlaces**](DefaultApi.md#getCurrentUserPlaces) | **GET** /users/current/places | Returns the places for the current user.
[**getCurrentUserPrivileges**](DefaultApi.md#getCurrentUserPrivileges) | **GET** /users/current/privileges | Returns the privileges for the current user.
[**getDevice**](DefaultApi.md#getDevice) | **GET** /devices/{id} | Gets a device.
[**getDeviceLocation**](DefaultApi.md#getDeviceLocation) | **GET** /devices/{id}/location | Gets the last device location.
[**getDeviceVisits**](DefaultApi.md#getDeviceVisits) | **GET** /devices/{id}/visits | Gets the last device location.
[**getDevices**](DefaultApi.md#getDevices) | **GET** /devices | Returns all devices.
[**getEntityStatistics**](DefaultApi.md#getEntityStatistics) | **GET** /log/entities | Returns a list of entity statistics.
[**getLoadStatistic**](DefaultApi.md#getLoadStatistic) | **GET** /log/load | Returns the current load statistic.
[**getLogMessages**](DefaultApi.md#getLogMessages) | **GET** /log/messages | Returns a list of log messages starting from a particular id.
[**getNotice**](DefaultApi.md#getNotice) | **GET** /notices/{id} | Returns the notice with the specified id.
[**getNotices**](DefaultApi.md#getNotices) | **GET** /notices | Returns a page of notices.
[**getPlace**](DefaultApi.md#getPlace) | **GET** /places/{id} | Returns the place with the specified id.
[**getPlaceVisits**](DefaultApi.md#getPlaceVisits) | **GET** /places/{id}/visits | Returns the visits for a particular place.
[**getPrivilege**](DefaultApi.md#getPrivilege) | **GET** /privileges/{id} | Returns the privileges for a particular user.
[**getPrivilegeLocation**](DefaultApi.md#getPrivilegeLocation) | **GET** /privileges/{id}/location | Returns the location for a particular privilege.
[**getShare**](DefaultApi.md#getShare) | **GET** /shares/{id} | Returns a share.
[**getShareInfo**](DefaultApi.md#getShareInfo) | **GET** /shares/{token}/info | Get a share info by its secret token.
[**getShareLocation**](DefaultApi.md#getShareLocation) | **GET** /shares/{token}/location | Get a shared location by its secret token.
[**getSystemStatistic**](DefaultApi.md#getSystemStatistic) | **GET** /log/system | Returns the system statistic.
[**getUpdatedNotices**](DefaultApi.md#getUpdatedNotices) | **GET** /notices/updated | Returns all active notices modified after the date.
[**getUser**](DefaultApi.md#getUser) | **GET** /users/{id} | Returns the user account with the specified id.
[**getUserPlaces**](DefaultApi.md#getUserPlaces) | **GET** /users/{id}/places | Returns the places for a particular user.
[**getUserPrivileges**](DefaultApi.md#getUserPrivileges) | **GET** /users/{id}/privileges | Returns the privileges for a particular user.
[**getUsers**](DefaultApi.md#getUsers) | **GET** /users | Returns a list of users.
[**registerUser**](DefaultApi.md#registerUser) | **POST** /users/register | Registers a new user and sends an email account verification.
[**resetUser**](DefaultApi.md#resetUser) | **POST** /users/reset | Sends a password reset email to the correspondence email account of a user.
[**resetUserPassword**](DefaultApi.md#resetUserPassword) | **PUT** /users/password/{token} | Sets the password of a user account using a token received via email.
[**searchUsers**](DefaultApi.md#searchUsers) | **GET** /users/search | Returns a list of users whose login name or name contains the term.
[**setCurrentPassword**](DefaultApi.md#setCurrentPassword) | **PUT** /users/current/password | Sets the password of the currently authorized user.
[**setCurrentUser**](DefaultApi.md#setCurrentUser) | **PUT** /users/current | Updates the currently authorized user.
[**setDevice**](DefaultApi.md#setDevice) | **PUT** /devices/{id} | Sets the values of a device.
[**setNotice**](DefaultApi.md#setNotice) | **PUT** /notices/{id} | Updates an existing notice.
[**setPlace**](DefaultApi.md#setPlace) | **PUT** /places/{id} | Updates the place with the specified id.
[**setShare**](DefaultApi.md#setShare) | **PUT** /shares/{id} | Updates an existing share.
[**setUser**](DefaultApi.md#setUser) | **PUT** /users/{id} | Updates the values of a particular user account.
[**setUserPassword**](DefaultApi.md#setUserPassword) | **PUT** /users/{id}/password | Sets the password of a user.
[**verifyUserEmail**](DefaultApi.md#verifyUserEmail) | **PUT** /users/verify/{token} | Verifies an email address using a token received via email.
# **addCurrentUserPrivilege**
> Privilege addCurrentUserPrivilege(share)
Add a privilege for the specified user.
### Example
```java
// 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.DefaultApi;
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure HTTP basic authorization: user
HttpBasicAuth user = (HttpBasicAuth) defaultClient.getAuthentication("user");
user.setUsername("YOUR USERNAME");
user.setPassword("YOUR PASSWORD");
DefaultApi apiInstance = new DefaultApi();
String share = "share_example"; // String | The token of the share.
try {
Privilege result = apiInstance.addCurrentUserPrivilege(share);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling DefaultApi#addCurrentUserPrivilege");
e.printStackTrace();
}
```
### Parameters
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**share** | **String**| The token of the share. |
### Return type
[**Privilege**](Privilege.md)
### Authorization
[user](../README.md#user)
### HTTP request headers
- **Content-Type**: application/json, application/xml
- **Accept**: application/json, application/xml
# **addLocations**
> addLocations(body)
Updates the locations of the current device.
### Example
```java
// 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.DefaultApi;
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure API key authorization: device
ApiKeyAuth device = (ApiKeyAuth) defaultClient.getAuthentication("device");
device.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//device.setApiKeyPrefix("Token");
DefaultApi apiInstance = new DefaultApi();
LocationUpdate body = new LocationUpdate(); // LocationUpdate | The location update with the locations to add.
try {
apiInstance.addLocations(body);
} catch (ApiException e) {
System.err.println("Exception when calling DefaultApi#addLocations");
e.printStackTrace();
}
```
### Parameters
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**body** | [**LocationUpdate**](LocationUpdate.md)| The location update with the locations to add. |
### Return type
null (empty response body)
### Authorization
[device](../README.md#device)
### HTTP request headers
- **Content-Type**: application/json, application/xml
- **Accept**: application/json, application/xml
# **addNotice**
> Notice addNotice(body)
Adds a new notice and returns the notice as well as its location.
### Example
```java
// 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.DefaultApi;
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure HTTP basic authorization: admin
HttpBasicAuth admin = (HttpBasicAuth) defaultClient.getAuthentication("admin");
admin.setUsername("YOUR USERNAME");
admin.setPassword("YOUR PASSWORD");
DefaultApi apiInstance = new DefaultApi();
Notice body = new Notice(); // Notice | The new notice to add.
try {
Notice result = apiInstance.addNotice(body);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling DefaultApi#addNotice");
e.printStackTrace();
}
```
### Parameters
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**body** | [**Notice**](Notice.md)| The new notice to add. |
### Return type
[**Notice**](Notice.md)
### Authorization
[admin](../README.md#admin)
### HTTP request headers
- **Content-Type**: application/json, application/xml
- **Accept**: application/json, application/xml
# **addUser**
> User addUser(body)
Adds a user account with the specified roles and emails.
### Example
```java
// 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.DefaultApi;
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure HTTP basic authorization: admin
HttpBasicAuth admin = (HttpBasicAuth) defaultClient.getAuthentication("admin");
admin.setUsername("YOUR USERNAME");
admin.setPassword("YOUR PASSWORD");
DefaultApi apiInstance = new DefaultApi();
User body = new User(); // User | The data for the new user.
try {
User result = apiInstance.addUser(body);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling DefaultApi#addUser");
e.printStackTrace();
}
```
### Parameters
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**body** | [**User**](User.md)| The data for the new user. |
### Return type
[**User**](User.md)
### Authorization
[admin](../README.md#admin)
### HTTP request headers
- **Content-Type**: application/json, application/xml
- **Accept**: application/json, application/xml
# **addUserPrivilege**
> Privilege addUserPrivilege(id, share)
Returns the privileges for a particular user.
### Example
```java
// 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.DefaultApi;
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure HTTP basic authorization: admin
HttpBasicAuth admin = (HttpBasicAuth) defaultClient.getAuthentication("admin");
admin.setUsername("YOUR USERNAME");
admin.setPassword("YOUR PASSWORD");
DefaultApi apiInstance = new DefaultApi();
Long id = 789L; // Long | The user id.
String share = "share_example"; // String | The token of the share.
try {
Privilege result = apiInstance.addUserPrivilege(id, share);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling DefaultApi#addUserPrivilege");
e.printStackTrace();
}
```
### Parameters
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**id** | **Long**| The user id. |
**share** | **String**| The token of the share. |
### Return type
[**Privilege**](Privilege.md)
### Authorization
[admin](../README.md#admin)
### HTTP request headers
- **Content-Type**: application/json, application/xml
- **Accept**: application/json, application/xml
# **createDevice**
> DeviceHandle createDevice(body)
Creates a new device and returns its handle.
The response will include the auth token to be stored on the device and supplied as authentication on all subsequent api calls. Note that the auth token can not be requested after creation, so when losing the auth token you may lose access to the device data.
### Example
```java
// Import classes:
//import io.swagger.client.ApiException;
//import io.swagger.client.api.DefaultApi;
DefaultApi apiInstance = new DefaultApi();
DeviceInfo body = new DeviceInfo(); // DeviceInfo | Necessary data from to create a device.
try {
DeviceHandle result = apiInstance.createDevice(body);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling DefaultApi#createDevice");
e.printStackTrace();
}
```
### Parameters
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**body** | [**DeviceInfo**](DeviceInfo.md)| Necessary data from to create a device. |
### Return type
[**DeviceHandle**](DeviceHandle.md)
### Authorization
No authorization required
### HTTP request headers
- **Content-Type**: application/json, application/xml
- **Accept**: application/json, application/xml
# **createShare**
> Share createShare(body)
Creates a new share.
### Example
```java
// 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.DefaultApi;
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure API key authorization: device
ApiKeyAuth device = (ApiKeyAuth) defaultClient.getAuthentication("device");
device.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//device.setApiKeyPrefix("Token");
DefaultApi apiInstance = new DefaultApi();
ShareInfo body = new ShareInfo(); // ShareInfo | Necessary data from to create a share.
try {
Share result = apiInstance.createShare(body);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling DefaultApi#createShare");
e.printStackTrace();
}
```
### Parameters
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**body** | [**ShareInfo**](ShareInfo.md)| Necessary data from to create a share. |
### Return type
[**Share**](Share.md)
### Authorization
[device](../README.md#device)
### HTTP request headers
- **Content-Type**: application/json, application/xml
- **Accept**: application/json, application/xml
# **deleteCurrentDevice**
> deleteCurrentDevice()
Deletes the current device.
### Example
```java
// 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.DefaultApi;
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure API key authorization: device
ApiKeyAuth device = (ApiKeyAuth) defaultClient.getAuthentication("device");
device.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//device.setApiKeyPrefix("Token");
DefaultApi apiInstance = new DefaultApi();
try {
apiInstance.deleteCurrentDevice();
} catch (ApiException e) {
System.err.println("Exception when calling DefaultApi#deleteCurrentDevice");
e.printStackTrace();
}
```
### Parameters
This endpoint does not need any parameter.
### Return type
null (empty response body)
### Authorization
[device](../README.md#device)
### HTTP request headers
- **Content-Type**: application/json, application/xml
- **Accept**: application/json, application/xml
# **deleteDevice**
> deleteDevice(id)
Deletes a device.
### Example
```java
// 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.DefaultApi;
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure HTTP basic authorization: admin
HttpBasicAuth admin = (HttpBasicAuth) defaultClient.getAuthentication("admin");
admin.setUsername("YOUR USERNAME");
admin.setPassword("YOUR PASSWORD");
// Configure HTTP basic authorization: user
HttpBasicAuth user = (HttpBasicAuth) defaultClient.getAuthentication("user");
user.setUsername("YOUR USERNAME");
user.setPassword("YOUR PASSWORD");
DefaultApi apiInstance = new DefaultApi();
Long id = 789L; // Long | The device id.
try {
apiInstance.deleteDevice(id);
} catch (ApiException e) {
System.err.println("Exception when calling DefaultApi#deleteDevice");
e.printStackTrace();
}
```
### Parameters
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**id** | **Long**| The device id. |
### Return type
null (empty response body)
### Authorization
[admin](../README.md#admin), [user](../README.md#user)
### HTTP request headers
- **Content-Type**: application/json, application/xml
- **Accept**: application/json, application/xml
# **deletePrivilege**
> deletePrivilege(id)
Deletes a particular privilege.
### Example
```java
// 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.DefaultApi;
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure HTTP basic authorization: admin
HttpBasicAuth admin = (HttpBasicAuth) defaultClient.getAuthentication("admin");
admin.setUsername("YOUR USERNAME");
admin.setPassword("YOUR PASSWORD");
// Configure HTTP basic authorization: user
HttpBasicAuth user = (HttpBasicAuth) defaultClient.getAuthentication("user");
user.setUsername("YOUR USERNAME");
user.setPassword("YOUR PASSWORD");
DefaultApi apiInstance = new DefaultApi();
Long id = 789L; // Long | The privilege id.
try {
apiInstance.deletePrivilege(id);
} catch (ApiException e) {
System.err.println("Exception when calling DefaultApi#deletePrivilege");
e.printStackTrace();
}
```
### Parameters
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**id** | **Long**| The privilege id. |
### Return type
null (empty response body)
### Authorization
[admin](../README.md#admin), [user](../README.md#user)
### HTTP request headers
- **Content-Type**: application/json, application/xml
- **Accept**: application/json, application/xml
# **deleteShare**
> deleteShare(id)
Delete a share.
### Example
```java
// 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.DefaultApi;
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure API key authorization: device
ApiKeyAuth device = (ApiKeyAuth) defaultClient.getAuthentication("device");
device.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//device.setApiKeyPrefix("Token");
DefaultApi apiInstance = new DefaultApi();
Long id = 789L; // Long | The share id.
try {
apiInstance.deleteShare(id);
} catch (ApiException e) {
System.err.println("Exception when calling DefaultApi#deleteShare");
e.printStackTrace();
}
```
### Parameters
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**id** | **Long**| The share id. |
### Return type
null (empty response body)
### Authorization
[device](../README.md#device)
### HTTP request headers
- **Content-Type**: application/json, application/xml
- **Accept**: application/json, application/xml
# **getActiveNotices**
> NoticePage getActiveNotices(pageOffset, pageSize)
Returns a page of notices.
### Example
```java
// Import classes:
//import io.swagger.client.ApiException;
//import io.swagger.client.api.DefaultApi;
DefaultApi apiInstance = new DefaultApi();
Integer pageOffset = 0; // Integer | The offset in terms of elements.
Integer pageSize = 20; // Integer | The maximum number of elements on the page.
try {
NoticePage result = apiInstance.getActiveNotices(pageOffset, pageSize);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling DefaultApi#getActiveNotices");
e.printStackTrace();
}
```
### Parameters
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**pageOffset** | **Integer**| The offset in terms of elements. | [optional] [default to 0]
**pageSize** | **Integer**| The maximum number of elements on the page. | [optional] [default to 20]
### Return type
[**NoticePage**](NoticePage.md)
### Authorization
No authorization required
### HTTP request headers
- **Content-Type**: application/json, application/xml
- **Accept**: application/json, application/xml
# **getBuildVersion**
> BuildVersion getBuildVersion()
Returns the build version.
### Example
```java
// Import classes:
//import io.swagger.client.ApiException;
//import io.swagger.client.api.DefaultApi;
DefaultApi apiInstance = new DefaultApi();
try {
BuildVersion result = apiInstance.getBuildVersion();
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling DefaultApi#getBuildVersion");
e.printStackTrace();
}
```
### Parameters
This endpoint does not need any parameter.
### Return type
[**BuildVersion**](BuildVersion.md)
### Authorization
No authorization required
### HTTP request headers
- **Content-Type**: Not defined
- **Accept**: application/json, application/xml
# **getCurrentDevice**
> Device getCurrentDevice()
Returns the current device.
### Example
```java
// 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.DefaultApi;
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure API key authorization: device
ApiKeyAuth device = (ApiKeyAuth) defaultClient.getAuthentication("device");
device.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//device.setApiKeyPrefix("Token");
DefaultApi apiInstance = new DefaultApi();
try {
Device result = apiInstance.getCurrentDevice();
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling DefaultApi#getCurrentDevice");
e.printStackTrace();
}
```
### Parameters
This endpoint does not need any parameter.
### Return type
[**Device**](Device.md)
### Authorization
[device](../README.md#device)
### HTTP request headers
- **Content-Type**: application/json, application/xml
- **Accept**: application/json, application/xml
# **getCurrentUser**
> User getCurrentUser()
Returns the user currently authorized.
### Example
```java
// 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.DefaultApi;
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure HTTP basic authorization: user
HttpBasicAuth user = (HttpBasicAuth) defaultClient.getAuthentication("user");
user.setUsername("YOUR USERNAME");
user.setPassword("YOUR PASSWORD");
DefaultApi apiInstance = new DefaultApi();
try {
User result = apiInstance.getCurrentUser();
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling DefaultApi#getCurrentUser");
e.printStackTrace();
}
```
### Parameters
This endpoint does not need any parameter.
### Return type
[**User**](User.md)
### Authorization
[user](../README.md#user)
### HTTP request headers
- **Content-Type**: application/json, application/xml
- **Accept**: application/json, application/xml
# **getCurrentUserDevices**
> DevicePage getCurrentUserDevices(pageOffset, pageSize)
Returns the list of devices for the current user.
### Example
```java
// 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.DefaultApi;
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure HTTP basic authorization: user
HttpBasicAuth user = (HttpBasicAuth) defaultClient.getAuthentication("user");
user.setUsername("YOUR USERNAME");
user.setPassword("YOUR PASSWORD");
DefaultApi apiInstance = new DefaultApi();
Integer pageOffset = 0; // Integer | The offset in terms of elements.
Integer pageSize = 20; // Integer | The maximum number of elements on the page.
try {
DevicePage result = apiInstance.getCurrentUserDevices(pageOffset, pageSize);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling DefaultApi#getCurrentUserDevices");
e.printStackTrace();
}
```
### Parameters
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**pageOffset** | **Integer**| The offset in terms of elements. | [optional] [default to 0]
**pageSize** | **Integer**| The maximum number of elements on the page. | [optional] [default to 20]
### Return type
[**DevicePage**](DevicePage.md)
### Authorization
[user](../README.md#user)
### HTTP request headers
- **Content-Type**: application/json, application/xml
- **Accept**: application/json, application/xml
# **getCurrentUserPlaces**
> PlacePage getCurrentUserPlaces(pageOffset, pageSize)
Returns the places for the current user.
### Example
```java
// Import classes:
//import io.swagger.client.ApiException;
//import io.swagger.client.api.DefaultApi;
DefaultApi apiInstance = new DefaultApi();
Integer pageOffset = 0; // Integer | The offset in terms of elements.
Integer pageSize = 20; // Integer | The maximum number of elements on the page.
try {
PlacePage result = apiInstance.getCurrentUserPlaces(pageOffset, pageSize);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling DefaultApi#getCurrentUserPlaces");
e.printStackTrace();
}
```
### Parameters
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**pageOffset** | **Integer**| The offset in terms of elements. | [optional] [default to 0]
**pageSize** | **Integer**| The maximum number of elements on the page. | [optional] [default to 20]
### Return type
[**PlacePage**](PlacePage.md)
### Authorization
No authorization required
### HTTP request headers
- **Content-Type**: application/json, application/xml
- **Accept**: application/json, application/xml
# **getCurrentUserPrivileges**
> PrivilegePage getCurrentUserPrivileges(pageOffset, pageSize)
Returns the privileges for the current user.
### Example
```java
// 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.DefaultApi;
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure HTTP basic authorization: user
HttpBasicAuth user = (HttpBasicAuth) defaultClient.getAuthentication("user");
user.setUsername("YOUR USERNAME");
user.setPassword("YOUR PASSWORD");
DefaultApi apiInstance = new DefaultApi();
Integer pageOffset = 0; // Integer | The offset in terms of elements.
Integer pageSize = 20; // Integer | The maximum number of elements on the page.
try {
PrivilegePage result = apiInstance.getCurrentUserPrivileges(pageOffset, pageSize);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling DefaultApi#getCurrentUserPrivileges");
e.printStackTrace();
}
```
### Parameters
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**pageOffset** | **Integer**| The offset in terms of elements. | [optional] [default to 0]
**pageSize** | **Integer**| The maximum number of elements on the page. | [optional] [default to 20]
### Return type
[**PrivilegePage**](PrivilegePage.md)
### Authorization
[user](../README.md#user)
### HTTP request headers
- **Content-Type**: application/json, application/xml
- **Accept**: application/json, application/xml
# **getDevice**
> Device getDevice(id)
Gets a device.
### Example
```java
// 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.DefaultApi;
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure HTTP basic authorization: admin
HttpBasicAuth admin = (HttpBasicAuth) defaultClient.getAuthentication("admin");
admin.setUsername("YOUR USERNAME");
admin.setPassword("YOUR PASSWORD");
// Configure HTTP basic authorization: user
HttpBasicAuth user = (HttpBasicAuth) defaultClient.getAuthentication("user");
user.setUsername("YOUR USERNAME");
user.setPassword("YOUR PASSWORD");
DefaultApi apiInstance = new DefaultApi();
Long id = 789L; // Long | The device id.
try {
Device result = apiInstance.getDevice(id);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling DefaultApi#getDevice");
e.printStackTrace();
}
```
### Parameters
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**id** | **Long**| The device id. |
### Return type
[**Device**](Device.md)
### Authorization
[admin](../README.md#admin), [user](../README.md#user)
### HTTP request headers
- **Content-Type**: application/json, application/xml
- **Accept**: application/json, application/xml
# **getDeviceLocation**
> Location getDeviceLocation(id)
Gets the last device location.
### Example
```java
// 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.DefaultApi;
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure HTTP basic authorization: admin
HttpBasicAuth admin = (HttpBasicAuth) defaultClient.getAuthentication("admin");
admin.setUsername("YOUR USERNAME");
admin.setPassword("YOUR PASSWORD");
// Configure HTTP basic authorization: user
HttpBasicAuth user = (HttpBasicAuth) defaultClient.getAuthentication("user");
user.setUsername("YOUR USERNAME");
user.setPassword("YOUR PASSWORD");
DefaultApi apiInstance = new DefaultApi();
Long id = 789L; // Long | The device id.
try {
Location result = apiInstance.getDeviceLocation(id);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling DefaultApi#getDeviceLocation");
e.printStackTrace();
}
```
### Parameters
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**id** | **Long**| The device id. |
### Return type
[**Location**](Location.md)
### Authorization
[admin](../README.md#admin), [user](../README.md#user)
### HTTP request headers
- **Content-Type**: application/json, application/xml
- **Accept**: application/json, application/xml
# **getDeviceVisits**
> List<Visit> getDeviceVisits(id, start, duration)
Gets the last device location.
### Example
```java
// 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.DefaultApi;
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure HTTP basic authorization: admin
HttpBasicAuth admin = (HttpBasicAuth) defaultClient.getAuthentication("admin");
admin.setUsername("YOUR USERNAME");
admin.setPassword("YOUR PASSWORD");
// Configure HTTP basic authorization: user
HttpBasicAuth user = (HttpBasicAuth) defaultClient.getAuthentication("user");
user.setUsername("YOUR USERNAME");
user.setPassword("YOUR PASSWORD");
DefaultApi apiInstance = new DefaultApi();
Long id = 789L; // Long | The device id.
Long start = 789L; // Long | The start time in Epoch milliseconds.
Long duration = 789L; // Long | The duration in milliseconds.
try {
List result = apiInstance.getDeviceVisits(id, start, duration);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling DefaultApi#getDeviceVisits");
e.printStackTrace();
}
```
### Parameters
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**id** | **Long**| The device id. |
**start** | **Long**| The start time in Epoch milliseconds. |
**duration** | **Long**| The duration in milliseconds. |
### Return type
[**List<Visit>**](Visit.md)
### Authorization
[admin](../README.md#admin), [user](../README.md#user)
### HTTP request headers
- **Content-Type**: application/json, application/xml
- **Accept**: application/json, application/xml
# **getDevices**
> DevicePage getDevices(pageOffset, pageSize)
Returns all devices.
### Example
```java
// 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.DefaultApi;
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure HTTP basic authorization: admin
HttpBasicAuth admin = (HttpBasicAuth) defaultClient.getAuthentication("admin");
admin.setUsername("YOUR USERNAME");
admin.setPassword("YOUR PASSWORD");
DefaultApi apiInstance = new DefaultApi();
Integer pageOffset = 0; // Integer | The offset in terms of elements.
Integer pageSize = 20; // Integer | The maximum number of elements on the page.
try {
DevicePage result = apiInstance.getDevices(pageOffset, pageSize);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling DefaultApi#getDevices");
e.printStackTrace();
}
```
### Parameters
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**pageOffset** | **Integer**| The offset in terms of elements. | [optional] [default to 0]
**pageSize** | **Integer**| The maximum number of elements on the page. | [optional] [default to 20]
### Return type
[**DevicePage**](DevicePage.md)
### Authorization
[admin](../README.md#admin)
### HTTP request headers
- **Content-Type**: application/json, application/xml
- **Accept**: application/json, application/xml
# **getEntityStatistics**
> List<EntityStatistic> getEntityStatistics()
Returns a list of entity statistics.
### Example
```java
// 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.DefaultApi;
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure HTTP basic authorization: admin
HttpBasicAuth admin = (HttpBasicAuth) defaultClient.getAuthentication("admin");
admin.setUsername("YOUR USERNAME");
admin.setPassword("YOUR PASSWORD");
DefaultApi apiInstance = new DefaultApi();
try {
List result = apiInstance.getEntityStatistics();
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling DefaultApi#getEntityStatistics");
e.printStackTrace();
}
```
### Parameters
This endpoint does not need any parameter.
### Return type
[**List<EntityStatistic>**](EntityStatistic.md)
### Authorization
[admin](../README.md#admin)
### HTTP request headers
- **Content-Type**: Not defined
- **Accept**: application/json, application/xml
# **getLoadStatistic**
> LoadStatistic getLoadStatistic()
Returns the current load statistic.
### Example
```java
// 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.DefaultApi;
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure HTTP basic authorization: admin
HttpBasicAuth admin = (HttpBasicAuth) defaultClient.getAuthentication("admin");
admin.setUsername("YOUR USERNAME");
admin.setPassword("YOUR PASSWORD");
DefaultApi apiInstance = new DefaultApi();
try {
LoadStatistic result = apiInstance.getLoadStatistic();
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling DefaultApi#getLoadStatistic");
e.printStackTrace();
}
```
### Parameters
This endpoint does not need any parameter.
### Return type
[**LoadStatistic**](LoadStatistic.md)
### Authorization
[admin](../README.md#admin)
### HTTP request headers
- **Content-Type**: Not defined
- **Accept**: application/json, application/xml
# **getLogMessages**
> List<LogMessage> getLogMessages(from)
Returns a list of log messages starting from a particular id.
### Example
```java
// 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.DefaultApi;
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure HTTP basic authorization: admin
HttpBasicAuth admin = (HttpBasicAuth) defaultClient.getAuthentication("admin");
admin.setUsername("YOUR USERNAME");
admin.setPassword("YOUR PASSWORD");
DefaultApi apiInstance = new DefaultApi();
Long from = 0L; // Long | The id of the first message to retrieve.
try {
List result = apiInstance.getLogMessages(from);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling DefaultApi#getLogMessages");
e.printStackTrace();
}
```
### Parameters
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**from** | **Long**| The id of the first message to retrieve. | [optional] [default to 0]
### Return type
[**List<LogMessage>**](LogMessage.md)
### Authorization
[admin](../README.md#admin)
### HTTP request headers
- **Content-Type**: Not defined
- **Accept**: application/json, application/xml
# **getNotice**
> Notice getNotice(id)
Returns the notice with the specified id.
### Example
```java
// 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.DefaultApi;
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure HTTP basic authorization: admin
HttpBasicAuth admin = (HttpBasicAuth) defaultClient.getAuthentication("admin");
admin.setUsername("YOUR USERNAME");
admin.setPassword("YOUR PASSWORD");
DefaultApi apiInstance = new DefaultApi();
Long id = 789L; // Long | The id of the notice.
try {
Notice result = apiInstance.getNotice(id);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling DefaultApi#getNotice");
e.printStackTrace();
}
```
### Parameters
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**id** | **Long**| The id of the notice. |
### Return type
[**Notice**](Notice.md)
### Authorization
[admin](../README.md#admin)
### HTTP request headers
- **Content-Type**: application/json, application/xml
- **Accept**: application/json, application/xml
# **getNotices**
> NoticePage getNotices(pageOffset, pageSize)
Returns a page of notices.
### Example
```java
// 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.DefaultApi;
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure HTTP basic authorization: admin
HttpBasicAuth admin = (HttpBasicAuth) defaultClient.getAuthentication("admin");
admin.setUsername("YOUR USERNAME");
admin.setPassword("YOUR PASSWORD");
DefaultApi apiInstance = new DefaultApi();
Integer pageOffset = 0; // Integer | The offset in terms of elements.
Integer pageSize = 20; // Integer | The maximum number of elements on the page.
try {
NoticePage result = apiInstance.getNotices(pageOffset, pageSize);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling DefaultApi#getNotices");
e.printStackTrace();
}
```
### Parameters
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**pageOffset** | **Integer**| The offset in terms of elements. | [optional] [default to 0]
**pageSize** | **Integer**| The maximum number of elements on the page. | [optional] [default to 20]
### Return type
[**NoticePage**](NoticePage.md)
### Authorization
[admin](../README.md#admin)
### HTTP request headers
- **Content-Type**: application/json, application/xml
- **Accept**: application/json, application/xml
# **getPlace**
> Place getPlace(id)
Returns the place with the specified id.
### Example
```java
// Import classes:
//import io.swagger.client.ApiException;
//import io.swagger.client.api.DefaultApi;
DefaultApi apiInstance = new DefaultApi();
Long id = 789L; // Long | The place id.
try {
Place result = apiInstance.getPlace(id);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling DefaultApi#getPlace");
e.printStackTrace();
}
```
### Parameters
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**id** | **Long**| The place id. |
### Return type
[**Place**](Place.md)
### Authorization
No authorization required
### HTTP request headers
- **Content-Type**: application/json, application/xml
- **Accept**: application/json, application/xml
# **getPlaceVisits**
> VisitPage getPlaceVisits(id, pageOffset, pageSize)
Returns the visits for a particular place.
### Example
```java
// Import classes:
//import io.swagger.client.ApiException;
//import io.swagger.client.api.DefaultApi;
DefaultApi apiInstance = new DefaultApi();
Long id = 789L; // Long | The place id.
Integer pageOffset = 0; // Integer | The offset in terms of elements.
Integer pageSize = 20; // Integer | The maximum number of elements on the page.
try {
VisitPage result = apiInstance.getPlaceVisits(id, pageOffset, pageSize);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling DefaultApi#getPlaceVisits");
e.printStackTrace();
}
```
### Parameters
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**id** | **Long**| The place id. |
**pageOffset** | **Integer**| The offset in terms of elements. | [optional] [default to 0]
**pageSize** | **Integer**| The maximum number of elements on the page. | [optional] [default to 20]
### Return type
[**VisitPage**](VisitPage.md)
### Authorization
No authorization required
### HTTP request headers
- **Content-Type**: application/json, application/xml
- **Accept**: application/json, application/xml
# **getPrivilege**
> Privilege getPrivilege(id)
Returns the privileges for a particular user.
### Example
```java
// 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.DefaultApi;
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure HTTP basic authorization: admin
HttpBasicAuth admin = (HttpBasicAuth) defaultClient.getAuthentication("admin");
admin.setUsername("YOUR USERNAME");
admin.setPassword("YOUR PASSWORD");
// Configure HTTP basic authorization: user
HttpBasicAuth user = (HttpBasicAuth) defaultClient.getAuthentication("user");
user.setUsername("YOUR USERNAME");
user.setPassword("YOUR PASSWORD");
DefaultApi apiInstance = new DefaultApi();
Long id = 789L; // Long | The privilege id.
try {
Privilege result = apiInstance.getPrivilege(id);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling DefaultApi#getPrivilege");
e.printStackTrace();
}
```
### Parameters
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**id** | **Long**| The privilege id. |
### Return type
[**Privilege**](Privilege.md)
### Authorization
[admin](../README.md#admin), [user](../README.md#user)
### HTTP request headers
- **Content-Type**: application/json, application/xml
- **Accept**: application/json, application/xml
# **getPrivilegeLocation**
> Location getPrivilegeLocation(id)
Returns the location for a particular privilege.
### Example
```java
// 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.DefaultApi;
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure HTTP basic authorization: admin
HttpBasicAuth admin = (HttpBasicAuth) defaultClient.getAuthentication("admin");
admin.setUsername("YOUR USERNAME");
admin.setPassword("YOUR PASSWORD");
// Configure HTTP basic authorization: user
HttpBasicAuth user = (HttpBasicAuth) defaultClient.getAuthentication("user");
user.setUsername("YOUR USERNAME");
user.setPassword("YOUR PASSWORD");
DefaultApi apiInstance = new DefaultApi();
Long id = 789L; // Long | The privilege id.
try {
Location result = apiInstance.getPrivilegeLocation(id);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling DefaultApi#getPrivilegeLocation");
e.printStackTrace();
}
```
### Parameters
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**id** | **Long**| The privilege id. |
### Return type
[**Location**](Location.md)
### Authorization
[admin](../README.md#admin), [user](../README.md#user)
### HTTP request headers
- **Content-Type**: application/json, application/xml
- **Accept**: application/json, application/xml
# **getShare**
> Share getShare(id)
Returns a share.
### Example
```java
// 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.DefaultApi;
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure API key authorization: device
ApiKeyAuth device = (ApiKeyAuth) defaultClient.getAuthentication("device");
device.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//device.setApiKeyPrefix("Token");
DefaultApi apiInstance = new DefaultApi();
Long id = 789L; // Long | The share id.
try {
Share result = apiInstance.getShare(id);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling DefaultApi#getShare");
e.printStackTrace();
}
```
### Parameters
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**id** | **Long**| The share id. |
### Return type
[**Share**](Share.md)
### Authorization
[device](../README.md#device)
### HTTP request headers
- **Content-Type**: application/json, application/xml
- **Accept**: application/json, application/xml
# **getShareInfo**
> ShareInfo getShareInfo(token)
Get a share info by its secret token.
### Example
```java
// Import classes:
//import io.swagger.client.ApiException;
//import io.swagger.client.api.DefaultApi;
DefaultApi apiInstance = new DefaultApi();
String token = "token_example"; // String | The secret token.
try {
ShareInfo result = apiInstance.getShareInfo(token);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling DefaultApi#getShareInfo");
e.printStackTrace();
}
```
### Parameters
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**token** | **String**| The secret token. |
### Return type
[**ShareInfo**](ShareInfo.md)
### Authorization
No authorization required
### HTTP request headers
- **Content-Type**: application/json, application/xml
- **Accept**: application/json, application/xml
# **getShareLocation**
> Location getShareLocation(token)
Get a shared location by its secret token.
### Example
```java
// Import classes:
//import io.swagger.client.ApiException;
//import io.swagger.client.api.DefaultApi;
DefaultApi apiInstance = new DefaultApi();
String token = "token_example"; // String | The secret token.
try {
Location result = apiInstance.getShareLocation(token);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling DefaultApi#getShareLocation");
e.printStackTrace();
}
```
### Parameters
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**token** | **String**| The secret token. |
### Return type
[**Location**](Location.md)
### Authorization
No authorization required
### HTTP request headers
- **Content-Type**: application/json, application/xml
- **Accept**: application/json, application/xml
# **getSystemStatistic**
> LoadStatistic getSystemStatistic()
Returns the system statistic.
### Example
```java
// 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.DefaultApi;
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure HTTP basic authorization: admin
HttpBasicAuth admin = (HttpBasicAuth) defaultClient.getAuthentication("admin");
admin.setUsername("YOUR USERNAME");
admin.setPassword("YOUR PASSWORD");
DefaultApi apiInstance = new DefaultApi();
try {
LoadStatistic result = apiInstance.getSystemStatistic();
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling DefaultApi#getSystemStatistic");
e.printStackTrace();
}
```
### Parameters
This endpoint does not need any parameter.
### Return type
[**LoadStatistic**](LoadStatistic.md)
### Authorization
[admin](../README.md#admin)
### HTTP request headers
- **Content-Type**: Not defined
- **Accept**: application/json, application/xml
# **getUpdatedNotices**
> List<Notice> getUpdatedNotices(since)
Returns all active notices modified after the date.
### Example
```java
// Import classes:
//import io.swagger.client.ApiException;
//import io.swagger.client.api.DefaultApi;
DefaultApi apiInstance = new DefaultApi();
Long since = 0L; // Long | The earlies time in epoch milliseconds.
try {
List result = apiInstance.getUpdatedNotices(since);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling DefaultApi#getUpdatedNotices");
e.printStackTrace();
}
```
### Parameters
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**since** | **Long**| The earlies time in epoch milliseconds. | [optional] [default to 0]
### Return type
[**List<Notice>**](Notice.md)
### Authorization
No authorization required
### HTTP request headers
- **Content-Type**: application/json, application/xml
- **Accept**: application/json, application/xml
# **getUser**
> User getUser(id)
Returns the user account with the specified id.
### Example
```java
// 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.DefaultApi;
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure HTTP basic authorization: admin
HttpBasicAuth admin = (HttpBasicAuth) defaultClient.getAuthentication("admin");
admin.setUsername("YOUR USERNAME");
admin.setPassword("YOUR PASSWORD");
DefaultApi apiInstance = new DefaultApi();
Long id = 789L; // Long | The id of the user to retrieve.
try {
User result = apiInstance.getUser(id);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling DefaultApi#getUser");
e.printStackTrace();
}
```
### Parameters
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**id** | **Long**| The id of the user to retrieve. |
### Return type
[**User**](User.md)
### Authorization
[admin](../README.md#admin)
### HTTP request headers
- **Content-Type**: application/json, application/xml
- **Accept**: application/json, application/xml
# **getUserPlaces**
> PlacePage getUserPlaces(id, pageOffset, pageSize)
Returns the places for a particular user.
### Example
```java
// Import classes:
//import io.swagger.client.ApiException;
//import io.swagger.client.api.DefaultApi;
DefaultApi apiInstance = new DefaultApi();
Long id = 789L; // Long | The user id.
Integer pageOffset = 0; // Integer | The offset in terms of elements.
Integer pageSize = 20; // Integer | The maximum number of elements on the page.
try {
PlacePage result = apiInstance.getUserPlaces(id, pageOffset, pageSize);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling DefaultApi#getUserPlaces");
e.printStackTrace();
}
```
### Parameters
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**id** | **Long**| The user id. |
**pageOffset** | **Integer**| The offset in terms of elements. | [optional] [default to 0]
**pageSize** | **Integer**| The maximum number of elements on the page. | [optional] [default to 20]
### Return type
[**PlacePage**](PlacePage.md)
### Authorization
No authorization required
### HTTP request headers
- **Content-Type**: application/json, application/xml
- **Accept**: application/json, application/xml
# **getUserPrivileges**
> PrivilegePage getUserPrivileges(id, pageOffset, pageSize)
Returns the privileges for a particular user.
### Example
```java
// 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.DefaultApi;
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure HTTP basic authorization: admin
HttpBasicAuth admin = (HttpBasicAuth) defaultClient.getAuthentication("admin");
admin.setUsername("YOUR USERNAME");
admin.setPassword("YOUR PASSWORD");
DefaultApi apiInstance = new DefaultApi();
Long id = 789L; // Long | The user id.
Integer pageOffset = 0; // Integer | The offset in terms of elements.
Integer pageSize = 20; // Integer | The maximum number of elements on the page.
try {
PrivilegePage result = apiInstance.getUserPrivileges(id, pageOffset, pageSize);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling DefaultApi#getUserPrivileges");
e.printStackTrace();
}
```
### Parameters
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**id** | **Long**| The user id. |
**pageOffset** | **Integer**| The offset in terms of elements. | [optional] [default to 0]
**pageSize** | **Integer**| The maximum number of elements on the page. | [optional] [default to 20]
### Return type
[**PrivilegePage**](PrivilegePage.md)
### Authorization
[admin](../README.md#admin)
### HTTP request headers
- **Content-Type**: application/json, application/xml
- **Accept**: application/json, application/xml
# **getUsers**
> UserPage getUsers(pageOffset, pageSize)
Returns a list of users.
### Example
```java
// 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.DefaultApi;
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure HTTP basic authorization: admin
HttpBasicAuth admin = (HttpBasicAuth) defaultClient.getAuthentication("admin");
admin.setUsername("YOUR USERNAME");
admin.setPassword("YOUR PASSWORD");
DefaultApi apiInstance = new DefaultApi();
Integer pageOffset = 0; // Integer | The offset in terms of elements.
Integer pageSize = 20; // Integer | The maximum number of elements on the page.
try {
UserPage result = apiInstance.getUsers(pageOffset, pageSize);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling DefaultApi#getUsers");
e.printStackTrace();
}
```
### Parameters
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**pageOffset** | **Integer**| The offset in terms of elements. | [optional] [default to 0]
**pageSize** | **Integer**| The maximum number of elements on the page. | [optional] [default to 20]
### Return type
[**UserPage**](UserPage.md)
### Authorization
[admin](../README.md#admin)
### HTTP request headers
- **Content-Type**: application/json, application/xml
- **Accept**: application/json, application/xml
# **registerUser**
> User registerUser(body)
Registers a new user and sends an email account verification.
### Example
```java
// Import classes:
//import io.swagger.client.ApiException;
//import io.swagger.client.api.DefaultApi;
DefaultApi apiInstance = new DefaultApi();
UserRegistration body = new UserRegistration(); // UserRegistration | The data of the new user.
try {
User result = apiInstance.registerUser(body);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling DefaultApi#registerUser");
e.printStackTrace();
}
```
### Parameters
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**body** | [**UserRegistration**](UserRegistration.md)| The data of the new user. |
### Return type
[**User**](User.md)
### Authorization
No authorization required
### HTTP request headers
- **Content-Type**: application/json, application/xml
- **Accept**: application/json, application/xml
# **resetUser**
> resetUser(login)
Sends a password reset email to the correspondence email account of a user.
### Example
```java
// Import classes:
//import io.swagger.client.ApiException;
//import io.swagger.client.api.DefaultApi;
DefaultApi apiInstance = new DefaultApi();
String login = "login_example"; // String | The login of the user to reset.
try {
apiInstance.resetUser(login);
} catch (ApiException e) {
System.err.println("Exception when calling DefaultApi#resetUser");
e.printStackTrace();
}
```
### Parameters
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**login** | **String**| The login of the user to reset. |
### Return type
null (empty response body)
### Authorization
No authorization required
### HTTP request headers
- **Content-Type**: application/json, application/xml
- **Accept**: application/json, application/xml
# **resetUserPassword**
> User resetUserPassword(token, body)
Sets the password of a user account using a token received via email.
### Example
```java
// Import classes:
//import io.swagger.client.ApiException;
//import io.swagger.client.api.DefaultApi;
DefaultApi apiInstance = new DefaultApi();
String token = "token_example"; // String | The secret token received via email.
UserPassword body = new UserPassword(); // UserPassword | The new user password.
try {
User result = apiInstance.resetUserPassword(token, body);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling DefaultApi#resetUserPassword");
e.printStackTrace();
}
```
### Parameters
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**token** | **String**| The secret token received via email. |
**body** | [**UserPassword**](UserPassword.md)| The new user password. |
### Return type
[**User**](User.md)
### Authorization
No authorization required
### HTTP request headers
- **Content-Type**: application/json, application/xml
- **Accept**: application/json, application/xml
# **searchUsers**
> UserPage searchUsers(term, pageOffset, pageSize)
Returns a list of users whose login name or name contains the term.
### Example
```java
// 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.DefaultApi;
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure HTTP basic authorization: admin
HttpBasicAuth admin = (HttpBasicAuth) defaultClient.getAuthentication("admin");
admin.setUsername("YOUR USERNAME");
admin.setPassword("YOUR PASSWORD");
DefaultApi apiInstance = new DefaultApi();
String term = "term_example"; // String | The search term.
Integer pageOffset = 0; // Integer | The offset in terms of elements.
Integer pageSize = 20; // Integer | The maximum number of elements on the page.
try {
UserPage result = apiInstance.searchUsers(term, pageOffset, pageSize);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling DefaultApi#searchUsers");
e.printStackTrace();
}
```
### Parameters
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**term** | **String**| The search term. |
**pageOffset** | **Integer**| The offset in terms of elements. | [optional] [default to 0]
**pageSize** | **Integer**| The maximum number of elements on the page. | [optional] [default to 20]
### Return type
[**UserPage**](UserPage.md)
### Authorization
[admin](../README.md#admin)
### HTTP request headers
- **Content-Type**: application/json, application/xml
- **Accept**: application/json, application/xml
# **setCurrentPassword**
> User setCurrentPassword(body)
Sets the password of the currently authorized user.
### Example
```java
// 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.DefaultApi;
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure HTTP basic authorization: user
HttpBasicAuth user = (HttpBasicAuth) defaultClient.getAuthentication("user");
user.setUsername("YOUR USERNAME");
user.setPassword("YOUR PASSWORD");
DefaultApi apiInstance = new DefaultApi();
UserPassword body = new UserPassword(); // UserPassword | The new password to set.
try {
User result = apiInstance.setCurrentPassword(body);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling DefaultApi#setCurrentPassword");
e.printStackTrace();
}
```
### Parameters
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**body** | [**UserPassword**](UserPassword.md)| The new password to set. |
### Return type
[**User**](User.md)
### Authorization
[user](../README.md#user)
### HTTP request headers
- **Content-Type**: application/json, application/xml
- **Accept**: application/json, application/xml
# **setCurrentUser**
> User setCurrentUser(body)
Updates the currently authorized user.
### Example
```java
// 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.DefaultApi;
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure HTTP basic authorization: user
HttpBasicAuth user = (HttpBasicAuth) defaultClient.getAuthentication("user");
user.setUsername("YOUR USERNAME");
user.setPassword("YOUR PASSWORD");
DefaultApi apiInstance = new DefaultApi();
User body = new User(); // User | The new user values to set.
try {
User result = apiInstance.setCurrentUser(body);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling DefaultApi#setCurrentUser");
e.printStackTrace();
}
```
### Parameters
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**body** | [**User**](User.md)| The new user values to set. |
### Return type
[**User**](User.md)
### Authorization
[user](../README.md#user)
### HTTP request headers
- **Content-Type**: application/json, application/xml
- **Accept**: application/json, application/xml
# **setDevice**
> Device setDevice(id, body)
Sets the values of a device.
### Example
```java
// 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.DefaultApi;
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure HTTP basic authorization: admin
HttpBasicAuth admin = (HttpBasicAuth) defaultClient.getAuthentication("admin");
admin.setUsername("YOUR USERNAME");
admin.setPassword("YOUR PASSWORD");
DefaultApi apiInstance = new DefaultApi();
Long id = 789L; // Long | The device id.
Device body = new Device(); // Device | The device values.
try {
Device result = apiInstance.setDevice(id, body);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling DefaultApi#setDevice");
e.printStackTrace();
}
```
### Parameters
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**id** | **Long**| The device id. |
**body** | [**Device**](Device.md)| The device values. | [optional]
### Return type
[**Device**](Device.md)
### Authorization
[admin](../README.md#admin)
### HTTP request headers
- **Content-Type**: application/json, application/xml
- **Accept**: application/json, application/xml
# **setNotice**
> Notice setNotice(id, body)
Updates an existing notice.
### Example
```java
// 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.DefaultApi;
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure HTTP basic authorization: admin
HttpBasicAuth admin = (HttpBasicAuth) defaultClient.getAuthentication("admin");
admin.setUsername("YOUR USERNAME");
admin.setPassword("YOUR PASSWORD");
DefaultApi apiInstance = new DefaultApi();
Long id = 789L; // Long | The id of the notice.
Notice body = new Notice(); // Notice | The data of the notice to set.
try {
Notice result = apiInstance.setNotice(id, body);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling DefaultApi#setNotice");
e.printStackTrace();
}
```
### Parameters
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**id** | **Long**| The id of the notice. |
**body** | [**Notice**](Notice.md)| The data of the notice to set. |
### Return type
[**Notice**](Notice.md)
### Authorization
[admin](../README.md#admin)
### HTTP request headers
- **Content-Type**: application/json, application/xml
- **Accept**: application/json, application/xml
# **setPlace**
> Place setPlace(id, body)
Updates the place with the specified id.
### Example
```java
// Import classes:
//import io.swagger.client.ApiException;
//import io.swagger.client.api.DefaultApi;
DefaultApi apiInstance = new DefaultApi();
Long id = 789L; // Long | The place id.
Place body = new Place(); // Place | The place to set.
try {
Place result = apiInstance.setPlace(id, body);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling DefaultApi#setPlace");
e.printStackTrace();
}
```
### Parameters
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**id** | **Long**| The place id. |
**body** | [**Place**](Place.md)| The place to set. |
### Return type
[**Place**](Place.md)
### Authorization
No authorization required
### HTTP request headers
- **Content-Type**: application/json, application/xml
- **Accept**: application/json, application/xml
# **setShare**
> Share setShare(id, body)
Updates an existing share.
### Example
```java
// 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.DefaultApi;
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure API key authorization: device
ApiKeyAuth device = (ApiKeyAuth) defaultClient.getAuthentication("device");
device.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//device.setApiKeyPrefix("Token");
DefaultApi apiInstance = new DefaultApi();
Long id = 789L; // Long | The share id.
Share body = new Share(); // Share | The new share to set.
try {
Share result = apiInstance.setShare(id, body);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling DefaultApi#setShare");
e.printStackTrace();
}
```
### Parameters
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**id** | **Long**| The share id. |
**body** | [**Share**](Share.md)| The new share to set. | [optional]
### Return type
[**Share**](Share.md)
### Authorization
[device](../README.md#device)
### HTTP request headers
- **Content-Type**: application/json, application/xml
- **Accept**: application/json, application/xml
# **setUser**
> User setUser(id, body)
Updates the values of a particular user account.
### Example
```java
// 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.DefaultApi;
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure HTTP basic authorization: admin
HttpBasicAuth admin = (HttpBasicAuth) defaultClient.getAuthentication("admin");
admin.setUsername("YOUR USERNAME");
admin.setPassword("YOUR PASSWORD");
DefaultApi apiInstance = new DefaultApi();
Long id = 789L; // Long | The id of the user to set.
User body = new User(); // User | The new user data to set.
try {
User result = apiInstance.setUser(id, body);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling DefaultApi#setUser");
e.printStackTrace();
}
```
### Parameters
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**id** | **Long**| The id of the user to set. |
**body** | [**User**](User.md)| The new user data to set. |
### Return type
[**User**](User.md)
### Authorization
[admin](../README.md#admin)
### HTTP request headers
- **Content-Type**: application/json, application/xml
- **Accept**: application/json, application/xml
# **setUserPassword**
> User setUserPassword(id, body)
Sets the password of a user.
### Example
```java
// 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.DefaultApi;
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure HTTP basic authorization: admin
HttpBasicAuth admin = (HttpBasicAuth) defaultClient.getAuthentication("admin");
admin.setUsername("YOUR USERNAME");
admin.setPassword("YOUR PASSWORD");
DefaultApi apiInstance = new DefaultApi();
Long id = 789L; // Long | The id of the user to change.
UserPassword body = new UserPassword(); // UserPassword | The new password.
try {
User result = apiInstance.setUserPassword(id, body);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling DefaultApi#setUserPassword");
e.printStackTrace();
}
```
### Parameters
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**id** | **Long**| The id of the user to change. |
**body** | [**UserPassword**](UserPassword.md)| The new password. |
### Return type
[**User**](User.md)
### Authorization
[admin](../README.md#admin)
### HTTP request headers
- **Content-Type**: application/json, application/xml
- **Accept**: application/json, application/xml
# **verifyUserEmail**
> verifyUserEmail(token)
Verifies an email address using a token received via email.
### Example
```java
// Import classes:
//import io.swagger.client.ApiException;
//import io.swagger.client.api.DefaultApi;
DefaultApi apiInstance = new DefaultApi();
String token = "token_example"; // String | The secret token received via email.
try {
apiInstance.verifyUserEmail(token);
} catch (ApiException e) {
System.err.println("Exception when calling DefaultApi#verifyUserEmail");
e.printStackTrace();
}
```
### Parameters
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**token** | **String**| The secret token received via email. |
### Return type
null (empty response body)
### Authorization
No authorization required
### HTTP request headers
- **Content-Type**: application/json, application/xml
- **Accept**: application/json, application/xml