Skip to content

Latest commit

 

History

History
57 lines (38 loc) · 1.73 KB

AppleApi.md

File metadata and controls

57 lines (38 loc) · 1.73 KB

forestvpn_api.api.AppleApi

Load the API package

import 'package:forestvpn_api/api.dart';

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

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

verifyAppStoreReceipt

verifyAppStoreReceipt(appStoreReceiptVerificationRequest)

App store receipt verification

Example

import 'package:forestvpn_api/api.dart';
// TODO Configure HTTP basic authorization: bearerAuth
//defaultApiClient.getAuthentication<HttpBasicAuth>('bearerAuth').username = 'YOUR_USERNAME'
//defaultApiClient.getAuthentication<HttpBasicAuth>('bearerAuth').password = 'YOUR_PASSWORD';

final api = ForestvpnApi().getAppleApi();
final AppStoreReceiptVerificationRequest appStoreReceiptVerificationRequest = ; // AppStoreReceiptVerificationRequest | 

try {
    api.verifyAppStoreReceipt(appStoreReceiptVerificationRequest);
} catch on DioError (e) {
    print('Exception when calling AppleApi->verifyAppStoreReceipt: $e\n');
}

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]