Skip to content

Latest commit

 

History

History
71 lines (44 loc) · 1.99 KB

GoogleApi.md

File metadata and controls

71 lines (44 loc) · 1.99 KB

\GoogleApi

All URIs are relative to https://api.forestvpn.com/v2

Method HTTP request Description
VerifyPlayStorePurchase Post /purchase/google/verify/ Play store purchase verification

VerifyPlayStorePurchase

VerifyPlayStorePurchase(ctx).PlayStorePurchaseVerificationRequest(playStorePurchaseVerificationRequest).Execute()

Play store purchase verification

Example

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

Path Parameters

Other Parameters

Other parameters are passed through a pointer to a apiVerifyPlayStorePurchaseRequest struct via the builder pattern

Name Type Description Notes
playStorePurchaseVerificationRequest PlayStorePurchaseVerificationRequest

Return type

(empty response body)

Authorization

bearerAuth

HTTP request headers

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

[Back to top] [Back to API list] [Back to Model list] [Back to README]