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(ctx).Text(text).Category(category).Files(files).Execute()
Create support ticket
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
text := "text_example" // string |
category := "category_example" // string | Ticket category's slug
files := []*os.File{"TODO"} // []*os.File | (optional)
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.SupportApi.CreateSupportTicket(context.Background()).Text(text).Category(category).Files(files).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `SupportApi.CreateSupportTicket``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
}
Other parameters are passed through a pointer to a apiCreateSupportTicketRequest struct via the builder pattern
Name | Type | Description | Notes |
---|---|---|---|
text | string | ||
category | string | Ticket category's slug | |
files | *[]os.File |
(empty response body)
- Content-Type: multipart/form-data
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
[]TicketCategory GetSupportTicketCategory(ctx).Execute()
Get ticket categories
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.SupportApi.GetSupportTicketCategory(context.Background()).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `SupportApi.GetSupportTicketCategory``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `GetSupportTicketCategory`: []TicketCategory
fmt.Fprintf(os.Stdout, "Response from `SupportApi.GetSupportTicketCategory`: %v\n", resp)
}
This endpoint does not need any parameter.
Other parameters are passed through a pointer to a apiGetSupportTicketCategoryRequest struct via the builder pattern
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]