Skip to main content

alexaquery_dart 4.0.1 copy "alexaquery_dart: ^4.0.1" to clipboard
alexaquery_dart: ^4.0.1 copied to clipboard

A Dart library for querying Alexa devices.

Alexa Query #

A Dart library for querying Alexa devices. Designed for use with SmartClock

API Reference #

All client methods return a Future.

Initialize Query Client

import "package:alexaquery_dart/alexaquery_dart.dart";
final client = QueryClient(
  File("cookies.json"),
  loginToken: alexa_refresh_token, // optional
  logger_function: (message, level) => print("[$level] $message"), //optional
);

Login

bool loginSuccessful = await client.login(userId, amazon_refresh_token);

Get Devices

List<Device> devices = await client.getDevices(userId);
for(var device in devices) {
  print(device.accountName);
}

Get Notifications

List<Notification> notifications = await client.getNotifications(userId);
for(var n in notifications) {
  print(n.type);
}

Get Queue

List<Device> devices = await getDevices(userId);
Queue queue = await client.getQueue(userId, devices.first.accountName);
0
likes
140
points
68
downloads

Documentation

API reference

Publisher

verified publishersmartclock.app

Weekly Downloads

A Dart library for querying Alexa devices.

Repository (GitHub)
View/report issues

License

MIT (license)

Dependencies

dio, mutex

More

Packages that depend on alexaquery_dart