forestvpn_api 1.2.3 forestvpn_api: ^1.2.3 copied to clipboard
A package to interact api.forestvpn.com (manage vpn profiles, check usage statistics, manage locations, ...)
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: 1.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 API key authorization: Bearer
//defaultApiClient.getAuthentication<ApiKeyAuth>('Bearer').apiKey = 'YOUR_API_KEY';
// uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//defaultApiClient.getAuthentication<ApiKeyAuth>('Bearer').apiKeyPrefix = 'Bearer';
var api_instance = AppleApi();
var request = AppleVerifyReceiptRequest(); // AppleVerifyReceiptRequest |
try {
api_instance.verifyReceipt(request);
} catch (e) {
print("Exception when calling AppleApi->verifyReceipt: $e\n");
}
Documentation for API Endpoints #
All URIs are relative to https://api.forestvpn.com/v1
Class | Method | HTTP request | Description |
---|---|---|---|
AppleApi | verifyReceipt | POST /apple/verify-receipt/ | Verify receipt |
GeoApi | getCountries | GET /countries/ | List of available countries |
GeoApi | getLocations | GET /locations/ | List of available locations |
GoogleApi | verifyGooglePlayPurchase | POST /google/verify-purchase/ | Google play purchase verification service |
UsageApi | getTraffic | GET /usage/traffic/ | Get traffic usage for current month |
UserApi | getPremium | GET /user/premium/ | Get premium status details |
UserApi | getSubscriptions | GET /user/subscriptions/ | Get subscriptions |
WireguardApi | createProfile | POST /wg/profiles/ | Create new WireGuard profile |
WireguardApi | deleteProfile | DELETE /wg/profiles/{profileId}/ | Delete WireGuarg profile |
WireguardApi | getProfile | GET /wg/profiles/{profileId}/ | Retrieve WireGuarg profile |
WireguardApi | getProfiles | GET /wg/profiles/ | Retrieve list of WireGuard profiles |
WireguardApi | updateProfile | PATCH /wg/profiles/{profileId}/ | Update profile |
Documentation For Models #
- AndroidDeviceInfo
- AndroidDeviceInfoVersion
- AppleVerifyReceiptRequest
- Country
- Error
- GeoPoint
- GooglePlayPurchaseVerificationRequest
- IOSDeviceInfo
- IOSDeviceInfoUtsname
- Location
- ProfilePreference
- Subscription
- UsageTraffic
- WireGuardInterface
- WireGuardPeer
- WireGuardProfile
- WireGuardProfileCreateRequest
- WireGuardProfileUpdateRequest
- WireGuardProfileUsage
Documentation For Authorization #
Bearer #
- Type: API key
- API key parameter name: Authorization
- Location: HTTP header