import 'package:openapi/api.dart';
All URIs are relative to https://demo.2fauth.app
Method | HTTP request | Description |
---|---|---|
getUser | GET /api/v1/user | Get user |
getUserName | GET /api/v1/user/name | Get user name |
UserRead getUser()
Get user
Use this endpoint to get informations about the authenticated user.
import 'package:openapi/api.dart';
final api_instance = UserApi();
try {
final result = api_instance.getUser();
print(result);
} catch (e) {
print('Exception when calling UserApi->getUser: $e\n');
}
This endpoint does not need any parameter.
No authorization required
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
GetUserName200Response getUserName()
Get user name
This endpoint is deprecated since API v1.1.0 Use this endpoint to check if a registered user exists by getting its name, null otherwise.
import 'package:openapi/api.dart';
final api_instance = UserApi();
try {
final result = api_instance.getUserName();
print(result);
} catch (e) {
print('Exception when calling UserApi->getUserName: $e\n');
}
This endpoint does not need any parameter.
No authorization required
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]