moises 1.0.1 copy "moises: ^1.0.1" to clipboard
moises: ^1.0.1 copied to clipboard

Moises.AI API Client for dart to access developer account data



Moises REST API client for Dart

In order to use the API, you need to have an API key. You can get one here and once you have it, you can use it in the client passing the key itself in the Moises constructor.

// 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.

// Get Application Result
Future<void> 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. 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.

Contributing #

If you want to contribute to moises, please make sure to review the contribution guidelines. This project makes use of GitHub issues for tracking requests and bugs.

0
likes
130
pub points
0%
popularity
screenshot

Publisher

unverified uploader

Moises.AI API Client for dart to access developer account data

Repository (GitHub)
View/report issues
Contributing

Documentation

API reference

License

BSD-3-Clause (LICENSE)

Dependencies

dio, equatable, flutter, json_annotation

More

Packages that depend on moises