All URIs are relative to https://api.forestvpn.com/v2
Method | HTTP request | Description |
---|---|---|
VerifyPlayStorePurchase | Post /purchase/google/verify/ | Play store purchase verification |
VerifyPlayStorePurchase(ctx).PlayStorePurchaseVerificationRequest(playStorePurchaseVerificationRequest).Execute()
Play store purchase verification
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
playStorePurchaseVerificationRequest := *openapiclient.NewPlayStorePurchaseVerificationRequest("ProductSku_example", "PurchaseToken_example") // PlayStorePurchaseVerificationRequest |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.GoogleApi.VerifyPlayStorePurchase(context.Background()).PlayStorePurchaseVerificationRequest(playStorePurchaseVerificationRequest).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `GoogleApi.VerifyPlayStorePurchase``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
}
Other parameters are passed through a pointer to a apiVerifyPlayStorePurchaseRequest struct via the builder pattern
Name | Type | Description | Notes |
---|---|---|---|
playStorePurchaseVerificationRequest | PlayStorePurchaseVerificationRequest |
(empty response body)
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]