Skip to content

Latest commit

 

History

History
57 lines (38 loc) · 1.76 KB

AppleAPI.md

File metadata and controls

57 lines (38 loc) · 1.76 KB

AppleAPI

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

Method HTTP request Description
verifyAppStoreReceipt POST /purchase/apple/verify/ App store receipt verification

verifyAppStoreReceipt

    open class func verifyAppStoreReceipt(appStoreReceiptVerificationRequest: AppStoreReceiptVerificationRequest, completion: @escaping (_ data: Void?, _ error: Error?) -> Void)

App store receipt 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 appStoreReceiptVerificationRequest = AppStoreReceiptVerificationRequest(receipt: 123, price: 123, currency: "currency_example") // AppStoreReceiptVerificationRequest | 

// App store receipt verification
AppleAPI.verifyAppStoreReceipt(appStoreReceiptVerificationRequest: appStoreReceiptVerificationRequest) { (response, error) in
    guard error == nil else {
        print(error)
        return
    }

    if (response) {
        dump(response)
    }
}

Parameters

Name Type Description Notes
appStoreReceiptVerificationRequest AppStoreReceiptVerificationRequest

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]