All URIs are relative to https://api.forestvpn.com/v2
Method | HTTP request | Description |
---|---|---|
listCountries | GET /geo/countries/ | Countries list |
listCurrencies | GET /geo/currencies/ | Correncies list |
listLocations | GET /locations/ | Location list |
kotlin.collections.List<Country> listCountries()
Countries list
// Import classes:
//import com.forestvpn.api.client.infrastructure.*
//import com.forestvpn.api.client.models.*
val apiInstance = GeoForestVPNAPI()
try {
val result : kotlin.collections.List<Country> = apiInstance.listCountries()
println(result)
} catch (e: ClientException) {
println("4xx response calling GeoForestVPNAPI#listCountries")
e.printStackTrace()
} catch (e: ServerException) {
println("5xx response calling GeoForestVPNAPI#listCountries")
e.printStackTrace()
}
This endpoint does not need any parameter.
kotlin.collections.List<Country>
Configure bearerAuth: ApiClient.accessToken = ""
- Content-Type: Not defined
- Accept: application/json
kotlin.collections.List<Currency> listCurrencies()
Correncies list
// Import classes:
//import com.forestvpn.api.client.infrastructure.*
//import com.forestvpn.api.client.models.*
val apiInstance = GeoForestVPNAPI()
try {
val result : kotlin.collections.List<Currency> = apiInstance.listCurrencies()
println(result)
} catch (e: ClientException) {
println("4xx response calling GeoForestVPNAPI#listCurrencies")
e.printStackTrace()
} catch (e: ServerException) {
println("5xx response calling GeoForestVPNAPI#listCurrencies")
e.printStackTrace()
}
This endpoint does not need any parameter.
kotlin.collections.List<Currency>
Configure bearerAuth: ApiClient.accessToken = ""
- Content-Type: Not defined
- Accept: application/json
kotlin.collections.List<Location> listLocations(xDeviceCoordinates)
Location list
// Import classes:
//import com.forestvpn.api.client.infrastructure.*
//import com.forestvpn.api.client.models.*
val apiInstance = GeoForestVPNAPI()
val xDeviceCoordinates : kotlin.String = xDeviceCoordinates_example // kotlin.String |
try {
val result : kotlin.collections.List<Location> = apiInstance.listLocations(xDeviceCoordinates)
println(result)
} catch (e: ClientException) {
println("4xx response calling GeoForestVPNAPI#listLocations")
e.printStackTrace()
} catch (e: ServerException) {
println("5xx response calling GeoForestVPNAPI#listLocations")
e.printStackTrace()
}
Name | Type | Description | Notes |
---|---|---|---|
xDeviceCoordinates | kotlin.String | [optional] |
kotlin.collections.List<Location>
Configure bearerAuth: ApiClient.accessToken = ""
- Content-Type: Not defined
- Accept: application/json