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

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



Moises REST API client for Dart

Overview #

To get started, create an account here to obtain your API key. After obtaining the key, you can use it by passing it into the Moises constructor within your client. The example below demonstrates how to fetch the MoisesApplicationModel.

Future<void> getApplication() async {
  try {
    // Create a new Moises client with your API key
    final Moises moises = Moises('Your API key');

    // Fetch the application data
    final MoisesApplicationModel value = await moises.application.get();

    return value;
  } on MoisesException catch (error) {
    print('Error: $error');
  }
}

You can find additional examples here. To run them, execute dart run example/main.dart for more demonstration code.

Working with JSON Serializers #

This client utilizes JSON serialization through the json_serializable package. To continuously rebuild the serializers in the background when files are updated, run the following command:

flutter pub run build_runner watch --delete-conflicting-outputs

Full API Documentation #

For complete API documentation, refer to the official guide 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.

2
likes
150
points
40
downloads
screenshot

Publisher

unverified uploader

Weekly Downloads

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