All URIs are relative to https://api.forestvpn.com/v2
Method | HTTP request | Description |
---|---|---|
createSupportTicket | POST /support/tickets/ | Create support ticket |
getSupportTicketCategory | GET /support/ticket-categories/ | Get ticket categories |
createSupportTicket(text, category, files)
Create support ticket
// Import classes:
//import com.forestvpn.api.client.infrastructure.*
//import com.forestvpn.api.client.models.*
val apiInstance = SupportForestVPNAPI()
val text : kotlin.String = text_example // kotlin.String |
val category : kotlin.String = category_example // kotlin.String | Ticket category's slug
val files : kotlin.collections.List<java.io.File> = /path/to/file.txt // kotlin.collections.List<java.io.File> |
try {
apiInstance.createSupportTicket(text, category, files)
} catch (e: ClientException) {
println("4xx response calling SupportForestVPNAPI#createSupportTicket")
e.printStackTrace()
} catch (e: ServerException) {
println("5xx response calling SupportForestVPNAPI#createSupportTicket")
e.printStackTrace()
}
Name | Type | Description | Notes |
---|---|---|---|
text | kotlin.String | ||
category | kotlin.String | Ticket category's slug | |
files | kotlin.collections.List<java.io.File> | [optional] |
null (empty response body)
Configure bearerAuth: ApiClient.accessToken = ""
- Content-Type: multipart/form-data
- Accept: application/json
kotlin.collections.List<TicketCategory> getSupportTicketCategory()
Get ticket categories
// Import classes:
//import com.forestvpn.api.client.infrastructure.*
//import com.forestvpn.api.client.models.*
val apiInstance = SupportForestVPNAPI()
try {
val result : kotlin.collections.List<TicketCategory> = apiInstance.getSupportTicketCategory()
println(result)
} catch (e: ClientException) {
println("4xx response calling SupportForestVPNAPI#getSupportTicketCategory")
e.printStackTrace()
} catch (e: ServerException) {
println("5xx response calling SupportForestVPNAPI#getSupportTicketCategory")
e.printStackTrace()
}
This endpoint does not need any parameter.
kotlin.collections.List<TicketCategory>
Configure bearerAuth: ApiClient.accessToken = ""
- Content-Type: Not defined
- Accept: application/json