All URIs are relative to https://api.forestvpn.com/v2
Method | HTTP request | Description |
---|---|---|
migrateLegacyAuth | GET /legacy/auth/ | Legacy auth migration |
whoAmI | GET /auth/whoami/ | Who am I |
open class func migrateLegacyAuth(completion: @escaping (_ data: LegacyAuthMigrationToken?, _ error: Error?) -> Void)
Legacy auth migration
// The following code samples are still beta. For any issue, please report via http://github.com/OpenAPITools/openapi-generator/issues/new
import ForestVPNAPI
// Legacy auth migration
AuthAPI.migrateLegacyAuth() { (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]
open class func whoAmI(completion: @escaping (_ data: User?, _ error: Error?) -> Void)
Who am I
// The following code samples are still beta. For any issue, please report via http://github.com/OpenAPITools/openapi-generator/issues/new
import ForestVPNAPI
// Who am I
AuthAPI.whoAmI() { (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]