Skip to main content

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

unlistedoutdated

A Dart library for querying Alexa devices.

Alexa Query #

A Dart library for querying Alexa devices.

API Reference #

All client methods return a Future.

Initialize Query Client

import "package:alexaquery_dart/alexaquery.dart";
final client = QueryClient(File("cookies.json"));

Check Login Status

bool isLoggedIn = await client.checkStatus(userId);

Login

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

Get Devices

List<Device> devices = await client.getDeviceList(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

Device device = getDevice();
Queue queue = await client.getQueue(userId, device.serialNumber, device.deviceType);
0
likes
140
points
69
downloads

Documentation

API reference

Publisher

verified publishersmartclock.app

Weekly Downloads

A Dart library for querying Alexa devices.

License

MIT (license)

Dependencies

dio, path_provider

More

Packages that depend on alexaquery_dart