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 |
open class func getWireGuardPeerInfo(pubKey: String, completion: @escaping (_ data: WireGuardPeerInfo?, _ error: Error?) -> Void)
Wireguard peer info
// The following code samples are still beta. For any issue, please report via http://github.com/OpenAPITools/openapi-generator/issues/new
import ForestVPNAPI
let pubKey = "pubKey_example" // String |
// Wireguard peer info
WireguardAPI.getWireGuardPeerInfo(pubKey: pubKey) { (response, error) in
guard error == nil else {
print(error)
return
}
if (response) {
dump(response)
}
}
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]
open class func listWireGuardPeers(completion: @escaping (_ data: [WireGuardPeerInfo]?, _ error: Error?) -> Void)
Wireguard peers list
// The following code samples are still beta. For any issue, please report via http://github.com/OpenAPITools/openapi-generator/issues/new
import ForestVPNAPI
// Wireguard peers list
WireguardAPI.listWireGuardPeers() { (response, error) in
guard error == nil else {
print(error)
return
}
if (response) {
dump(response)
}
}
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]