import 'package:forestvpn_api/api.dart';
All URIs are relative to https://api.forestvpn.com/v2
Method | HTTP request | Description |
---|---|---|
getWireGuardPeerInfo | GET /wireguard/peers/{pubKey}/ | Wireguard peer info |
listWireGuardPeers | GET /wireguard/peers/ | Wireguard peers list |
WireGuardPeerInfo getWireGuardPeerInfo(pubKey)
Wireguard peer info
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().getWireguardApi();
final String pubKey = pubKey_example; // String |
try {
final response = api.getWireGuardPeerInfo(pubKey);
print(response);
} catch on DioError (e) {
print('Exception when calling WireguardApi->getWireGuardPeerInfo: $e\n');
}
Name | Type | Description | Notes |
---|---|---|---|
pubKey | String |
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
BuiltList listWireGuardPeers()
Wireguard peers 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().getWireguardApi();
try {
final response = api.listWireGuardPeers();
print(response);
} catch on DioError (e) {
print('Exception when calling WireguardApi->listWireGuardPeers: $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]