Skip to content

Latest commit

 

History

History
57 lines (38 loc) · 1.77 KB

GoogleApi.md

File metadata and controls

57 lines (38 loc) · 1.77 KB

forestvpn_api.api.GoogleApi

Load the API package

import 'package:forestvpn_api/api.dart';

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(playStorePurchaseVerificationRequest)

Play store purchase 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().getGoogleApi();
final PlayStorePurchaseVerificationRequest playStorePurchaseVerificationRequest = ; // PlayStorePurchaseVerificationRequest | 

try {
    api.verifyPlayStorePurchase(playStorePurchaseVerificationRequest);
} catch on DioError (e) {
    print('Exception when calling GoogleApi->verifyPlayStorePurchase: $e\n');
}

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]