Skip to content

Latest commit

 

History

History
57 lines (38 loc) · 1.82 KB

GoogleAPI.md

File metadata and controls

57 lines (38 loc) · 1.82 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

    open class func verifyPlayStorePurchase(playStorePurchaseVerificationRequest: PlayStorePurchaseVerificationRequest, completion: @escaping (_ data: Void?, _ error: Error?) -> Void)

Play store purchase verification

Example

// The following code samples are still beta. For any issue, please report via http://github.com/OpenAPITools/openapi-generator/issues/new
import ForestVPNAPI

let playStorePurchaseVerificationRequest = PlayStorePurchaseVerificationRequest(productSku: "productSku_example", purchaseToken: "purchaseToken_example") // PlayStorePurchaseVerificationRequest | 

// Play store purchase verification
GoogleAPI.verifyPlayStorePurchase(playStorePurchaseVerificationRequest: playStorePurchaseVerificationRequest) { (response, error) in
    guard error == nil else {
        print(error)
        return
    }

    if (response) {
        dump(response)
    }
}

Parameters

Name Type Description Notes
playStorePurchaseVerificationRequest PlayStorePurchaseVerificationRequest

Return type

Void (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]