import 'package:forestvpn_api/api.dart';
All URIs are relative to https://api.forestvpn.com/v2
Method | HTTP request | Description |
---|---|---|
listCountries | GET /geo/countries/ | Countries list |
listCurrencies | GET /geo/currencies/ | Correncies list |
listLocations | GET /locations/ | Location list |
BuiltList listCountries()
Countries list
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().getGeoApi();
try {
final response = api.listCountries();
print(response);
} catch on DioError (e) {
print('Exception when calling GeoApi->listCountries: $e\n');
}
This endpoint does not need any parameter.
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
BuiltList listCurrencies()
Correncies list
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().getGeoApi();
try {
final response = api.listCurrencies();
print(response);
} catch on DioError (e) {
print('Exception when calling GeoApi->listCurrencies: $e\n');
}
This endpoint does not need any parameter.
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
BuiltList listLocations(xDeviceCoordinates)
Location list
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().getGeoApi();
final String xDeviceCoordinates = xDeviceCoordinates_example; // String |
try {
final response = api.listLocations(xDeviceCoordinates);
print(response);
} catch on DioError (e) {
print('Exception when calling GeoApi->listLocations: $e\n');
}
Name | Type | Description | Notes |
---|---|---|---|
xDeviceCoordinates | String | [optional] |
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]