All URIs are relative to https://api.forestvpn.com/v2
Method | HTTP request | Description |
---|---|---|
createAdUnitRequestLog | POST /ads/request-logs/ | Create ad unit request log |
listAdPlacements | GET /ads/placements/ | Get ad placement list |
CreateAdUnitRequestLogRequest createAdUnitRequestLog(createAdUnitRequestLogRequest)
Create ad unit request log
// Import classes:
//import com.forestvpn.api.client.infrastructure.*
//import com.forestvpn.api.client.models.*
val apiInstance = AdsForestVPNAPI()
val createAdUnitRequestLogRequest : CreateAdUnitRequestLogRequest = // CreateAdUnitRequestLogRequest |
try {
val result : CreateAdUnitRequestLogRequest = apiInstance.createAdUnitRequestLog(createAdUnitRequestLogRequest)
println(result)
} catch (e: ClientException) {
println("4xx response calling AdsForestVPNAPI#createAdUnitRequestLog")
e.printStackTrace()
} catch (e: ServerException) {
println("5xx response calling AdsForestVPNAPI#createAdUnitRequestLog")
e.printStackTrace()
}
Name | Type | Description | Notes |
---|---|---|---|
createAdUnitRequestLogRequest | CreateAdUnitRequestLogRequest | [optional] |
Configure bearerAuth: ApiClient.accessToken = ""
- Content-Type: application/json
- Accept: application/json
kotlin.collections.List<AdPlacement> listAdPlacements()
Get ad placement list
// Import classes:
//import com.forestvpn.api.client.infrastructure.*
//import com.forestvpn.api.client.models.*
val apiInstance = AdsForestVPNAPI()
try {
val result : kotlin.collections.List<AdPlacement> = apiInstance.listAdPlacements()
println(result)
} catch (e: ClientException) {
println("4xx response calling AdsForestVPNAPI#listAdPlacements")
e.printStackTrace()
} catch (e: ServerException) {
println("5xx response calling AdsForestVPNAPI#listAdPlacements")
e.printStackTrace()
}
This endpoint does not need any parameter.
kotlin.collections.List<AdPlacement>
Configure bearerAuth: ApiClient.accessToken = ""
- Content-Type: Not defined
- Accept: application/json