All URIs are relative to https://api.forestvpn.com/v2
Method | HTTP request | Description |
---|---|---|
createFCMDevice | POST /notification/fcm/ | Device registration for push notification through out Firebase Cloud Messaging |
deleteFCMDevice | DELETE /notification/fcm/{registrationID}/ | Delete fcm device |
getFCMDevice | GET /notification/fcm/{registrationID}/ | Device info |
updateFCMDevice | PATCH /notification/fcm/{registrationID}/ | Update device fcm properties |
FCMDevice createFCMDevice(createFCMDeviceRequest)
Device registration for push notification through out Firebase Cloud Messaging
// Import classes:
//import com.forestvpn.api.client.infrastructure.*
//import com.forestvpn.api.client.models.*
val apiInstance = FcmForestVPNAPI()
val createFCMDeviceRequest : CreateFCMDeviceRequest = // CreateFCMDeviceRequest |
try {
val result : FCMDevice = apiInstance.createFCMDevice(createFCMDeviceRequest)
println(result)
} catch (e: ClientException) {
println("4xx response calling FcmForestVPNAPI#createFCMDevice")
e.printStackTrace()
} catch (e: ServerException) {
println("5xx response calling FcmForestVPNAPI#createFCMDevice")
e.printStackTrace()
}
Name | Type | Description | Notes |
---|---|---|---|
createFCMDeviceRequest | CreateFCMDeviceRequest |
Configure bearerAuth: ApiClient.accessToken = ""
- Content-Type: application/json
- Accept: application/json
deleteFCMDevice(registrationID)
Delete fcm device
// Import classes:
//import com.forestvpn.api.client.infrastructure.*
//import com.forestvpn.api.client.models.*
val apiInstance = FcmForestVPNAPI()
val registrationID : kotlin.String = registrationID_example // kotlin.String |
try {
apiInstance.deleteFCMDevice(registrationID)
} catch (e: ClientException) {
println("4xx response calling FcmForestVPNAPI#deleteFCMDevice")
e.printStackTrace()
} catch (e: ServerException) {
println("5xx response calling FcmForestVPNAPI#deleteFCMDevice")
e.printStackTrace()
}
Name | Type | Description | Notes |
---|---|---|---|
registrationID | kotlin.String |
null (empty response body)
Configure bearerAuth: ApiClient.accessToken = ""
- Content-Type: Not defined
- Accept: application/json
FCMDevice getFCMDevice(registrationID)
Device info
// Import classes:
//import com.forestvpn.api.client.infrastructure.*
//import com.forestvpn.api.client.models.*
val apiInstance = FcmForestVPNAPI()
val registrationID : kotlin.String = registrationID_example // kotlin.String |
try {
val result : FCMDevice = apiInstance.getFCMDevice(registrationID)
println(result)
} catch (e: ClientException) {
println("4xx response calling FcmForestVPNAPI#getFCMDevice")
e.printStackTrace()
} catch (e: ServerException) {
println("5xx response calling FcmForestVPNAPI#getFCMDevice")
e.printStackTrace()
}
Name | Type | Description | Notes |
---|---|---|---|
registrationID | kotlin.String |
Configure bearerAuth: ApiClient.accessToken = ""
- Content-Type: Not defined
- Accept: application/json
FCMDevice updateFCMDevice(registrationID, updateFCMDeviceRequest)
Update device fcm properties
// Import classes:
//import com.forestvpn.api.client.infrastructure.*
//import com.forestvpn.api.client.models.*
val apiInstance = FcmForestVPNAPI()
val registrationID : kotlin.String = registrationID_example // kotlin.String |
val updateFCMDeviceRequest : UpdateFCMDeviceRequest = // UpdateFCMDeviceRequest |
try {
val result : FCMDevice = apiInstance.updateFCMDevice(registrationID, updateFCMDeviceRequest)
println(result)
} catch (e: ClientException) {
println("4xx response calling FcmForestVPNAPI#updateFCMDevice")
e.printStackTrace()
} catch (e: ServerException) {
println("5xx response calling FcmForestVPNAPI#updateFCMDevice")
e.printStackTrace()
}
Name | Type | Description | Notes |
---|---|---|---|
registrationID | kotlin.String | ||
updateFCMDeviceRequest | UpdateFCMDeviceRequest |
Configure bearerAuth: ApiClient.accessToken = ""
- Content-Type: application/json
- Accept: application/json