Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/whosramoss/moises
Moises REST API client for Dart
https://github.com/whosramoss/moises
api dart flutter moises moises-api
Last synced: about 1 month ago
JSON representation
Moises REST API client for Dart
- Host: GitHub
- URL: https://github.com/whosramoss/moises
- Owner: whosramoss
- License: bsd-3-clause
- Created: 2023-02-20T20:37:15.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-09-04T00:01:35.000Z (4 months ago)
- Last Synced: 2024-11-02T07:23:31.551Z (about 2 months ago)
- Topics: api, dart, flutter, moises, moises-api
- Language: Dart
- Homepage: https://pub.dev/packages/moises
- Size: 97.7 KB
- Stars: 4
- Watchers: 1
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
- Codeowners: .github/CODEOWNERS
Awesome Lists containing this project
README
Moises REST API client for Dart
In order to use the API, you need to have an API key. You can get one [**here**](https://developer.moises.ai/) and once you have it, you can use it in the client passing the key itself in the `Moises` constructor.
```dart
// Create a new client
final Moises moises = Moises('Your API key');
```
# Examples
The example below is for fetching the `MoisesApplicationModel`. You can find other examples inside the `example/main.dart` file.```dart
// Get Application Result
Future getApplication() async {
try {
final Moises moises = Moises('Your API key');
final MoisesApplicationModel value = await moises.application.get();
print('Application : $value');
} on MoisesException catch (error) {
print('Error : $error');
}
}
```This client uses JSON serializers by [json_serializable](https://pub.dev/packages/json_serializable). Run `pub run build_runner watch` to continuously rebuild serializers in the background when files are updated.
The full API documentation is available in [**here**](https://developer.moises.ai/docs).
# Contributing
If you want to contribute to `moises`, please make sure to review the [contribution guidelines](https://github.com/whosramoss/moises/blob/master/CONTRIBUTING.md). This project makes use of [GitHub issues](https://github.com/whosramoss/moises/issues) for
tracking requests and bugs.