All URIs are relative to https://api.forestvpn.com/v2
Method | HTTP request | Description |
---|---|---|
getCurrentUserDevice | GET /app/devices/current/ | Get user device info |
updateCurrentUserDevice | PATCH /app/devices/current/ | Update user device |
UserDevice getCurrentUserDevice()
Get user device info
// Import classes:
//import com.forestvpn.api.client.infrastructure.*
//import com.forestvpn.api.client.models.*
val apiInstance = AppForestVPNAPI()
try {
val result : UserDevice = apiInstance.getCurrentUserDevice()
println(result)
} catch (e: ClientException) {
println("4xx response calling AppForestVPNAPI#getCurrentUserDevice")
e.printStackTrace()
} catch (e: ServerException) {
println("5xx response calling AppForestVPNAPI#getCurrentUserDevice")
e.printStackTrace()
}
This endpoint does not need any parameter.
Configure bearerAuth: ApiClient.accessToken = ""
- Content-Type: Not defined
- Accept: application/json
updateCurrentUserDevice(updateUserDeviceRequest)
Update user device
// Import classes:
//import com.forestvpn.api.client.infrastructure.*
//import com.forestvpn.api.client.models.*
val apiInstance = AppForestVPNAPI()
val updateUserDeviceRequest : UpdateUserDeviceRequest = // UpdateUserDeviceRequest |
try {
apiInstance.updateCurrentUserDevice(updateUserDeviceRequest)
} catch (e: ClientException) {
println("4xx response calling AppForestVPNAPI#updateCurrentUserDevice")
e.printStackTrace()
} catch (e: ServerException) {
println("5xx response calling AppForestVPNAPI#updateCurrentUserDevice")
e.printStackTrace()
}
Name | Type | Description | Notes |
---|---|---|---|
updateUserDeviceRequest | UpdateUserDeviceRequest |
null (empty response body)
Configure bearerAuth: ApiClient.accessToken = ""
- Content-Type: application/json
- Accept: application/json