https://github.com/xvrh/fusionauth_api
https://github.com/xvrh/fusionauth_api
Last synced: 25 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/xvrh/fusionauth_api
- Owner: xvrh
- Created: 2024-10-08T15:28:32.000Z (about 1 year ago)
- Default Branch: master
- Last Pushed: 2025-08-18T22:00:14.000Z (about 2 months ago)
- Last Synced: 2025-09-06T23:46:02.625Z (about 1 month ago)
- Language: Dart
- Size: 996 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
Awesome Lists containing this project
README
# A client for the Fusionauth REST APIs in Dart
The client is generated from the [OpenAPI specification](https://github.com/FusionAuth/fusionauth-openapi) provided by Fusionauth.
See [Fusionauth documentation of the APIs](https://fusionauth.io/docs/apis/)
## Usage
### Login
```dart
import 'dart:convert';
import 'package:fusionauth_api/fusionauth_api.dart';
import 'package:http/http.dart';void main() async {
var apiKey = '';var httpClient = Client();
var api = FusionauthClient(
httpClient,
Uri.https('sandbox.fusionauth.io'),
apiKey: apiKey,
);var result = await api.loginWithId(
body: LoginRequest(
loginId: 'test@test.com',
password: 'AbCd€',
applicationId: 'a-b-c-d-e',
),
);
print(jsonEncode(result));httpClient.close();
}
```