Skip to content

Latest commit

 

History

History
144 lines (103 loc) · 3.47 KB

GeoForestVPNAPI.md

File metadata and controls

144 lines (103 loc) · 3.47 KB

GeoForestVPNAPI

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

listCountries

kotlin.collections.List<Country> listCountries()

Countries list

Example

// 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()
}

Parameters

This endpoint does not need any parameter.

Return type

kotlin.collections.List<Country>

Authorization

Configure bearerAuth: ApiClient.accessToken = ""

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

listCurrencies

kotlin.collections.List<Currency> listCurrencies()

Correncies list

Example

// 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()
}

Parameters

This endpoint does not need any parameter.

Return type

kotlin.collections.List<Currency>

Authorization

Configure bearerAuth: ApiClient.accessToken = ""

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

listLocations

kotlin.collections.List<Location> listLocations(xDeviceCoordinates)

Location list

Example

// 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()
}

Parameters

Name Type Description Notes
xDeviceCoordinates kotlin.String [optional]

Return type

kotlin.collections.List<Location>

Authorization

Configure bearerAuth: ApiClient.accessToken = ""

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json