Connector module for the Brainy Home API written in Dart. You can use this package in your Flutter/Dart app for making requests to your smart home server.
A simple usage example:
import 'package:brainyhome_api/brainyhome_api.dart';
main() async {
var api = Api(uri: "path_to_your_server[:PORT]");
var response = await api.call("aboutme");
if (response.success) {
print(response.data);
} else {
print("Unsuccessful request");
}
}
More usage samples you can find in the example
directory.
Please file feature requests and bugs at the issue tracker.