Skip to content

Latest commit

 

History

History
100 lines (71 loc) · 2.69 KB

AdsForestVPNAPI.md

File metadata and controls

100 lines (71 loc) · 2.69 KB

AdsForestVPNAPI

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

createAdUnitRequestLog

CreateAdUnitRequestLogRequest createAdUnitRequestLog(createAdUnitRequestLogRequest)

Create ad unit request log

Example

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

Parameters

Name Type Description Notes
createAdUnitRequestLogRequest CreateAdUnitRequestLogRequest [optional]

Return type

CreateAdUnitRequestLogRequest

Authorization

Configure bearerAuth: ApiClient.accessToken = ""

HTTP request headers

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

listAdPlacements

kotlin.collections.List<AdPlacement> listAdPlacements()

Get ad placement list

Example

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

Parameters

This endpoint does not need any parameter.

Return type

kotlin.collections.List<AdPlacement>

Authorization

Configure bearerAuth: ApiClient.accessToken = ""

HTTP request headers

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