Skip to content

whosramoss/moises



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.