forestvpn_api

ForestVPN defeats content restrictions and censorship to deliver unlimited access to video, music, social media, and more, from anywhere in the world.

This Dart package is automatically generated by the OpenAPI Generator project:

  • API version: 2.0
  • Build package: org.openapitools.codegen.languages.DartClientCodegen For more information, please visit https://www.forestvpn.com/

Requirements

Dart 2.0 or later

Installation & Usage

Github

If this Dart package is published to Github, add the following dependency to your pubspec.yaml

dependencies:
  forestvpn_api:
    git: https://github.com/GIT_USER_ID/GIT_REPO_ID.git

Local

To use the package in your local drive, add the following dependency to your pubspec.yaml

dependencies:
  forestvpn_api:
    path: /path/to/forestvpn_api

Tests

TODO

Getting Started

Please follow the installation procedure and then run the following:

import 'package:forestvpn_api/api.dart';

// TODO Configure HTTP Bearer authorization: bearerAuth
// Case 1. Use String Token
//defaultApiClient.getAuthentication<HttpBearerAuth>('bearerAuth').setAccessToken('YOUR_ACCESS_TOKEN');
// Case 2. Use Function which generate token.
// String yourTokenGeneratorFunction() { ... }
//defaultApiClient.getAuthentication<HttpBearerAuth>('bearerAuth').setAccessToken(yourTokenGeneratorFunction);

final api_instance = AppleApi();
final appStoreReceiptVerificationRequest = AppStoreReceiptVerificationRequest(); // AppStoreReceiptVerificationRequest | 

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

Documentation for API Endpoints

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

ClassMethodHTTP requestDescription
AppleApiverifyAppStoreReceiptPOST /purchase/apple/verify/App store receipt verification
DeviceApicreateDevicePOST /devices/Create new device
DeviceApideleteDeviceDELETE /devices/{deviceID}/Delete Device
DeviceApideviceGetByIDGET /devices/{deviceID}/Device Info
DeviceApilistDeviceBindingsGET /devices/{deviceID}/bindings/Device bindings
DeviceApilistDevicesGET /devices/Device List
DeviceApiupdateDevicePATCH /devices/{deviceID}/Update device properties
FcmApicreateFCMDevicePOST /notification/fcm/Device registration for push notification through out Firebase Cloud Messaging
FcmApideleteFCMDeviceDELETE /notification/fcm/{registrationID}/Delete device
FcmApigetFCMDeviceGET /notification/fcm/{registrationID}/Device info
FcmApiupdateFCMDevicePATCH /notification/fcm/{registrationID}/Update device properties
GeoApilistLocationsGET /geo/locations/Location list
GoogleApiverifyPlayStorePurchasePOST /purchase/google/verify/Play store purchase verification

Documentation For Models

Documentation For Authorization

bearerAuth

  • Type: HTTP Bearer authentication

Author

support@forestvpn.com

Libraries

openapi.api