All alexa methods return a promise.
import AlexaQuery from "alexaquery";
const alexa = new AlexaQuery(cookiePath);
cookiePath is relative to your home directory.
// The userId is used to identify the cookie and can be any string.
// Returns a boolean (True == success)
await alexa.login(userId, amazon_refresh_token);
// Returns a boolean
await alexa.checkStatus(userId);
// Returns an array of devices
await alexa.getDevices(userId);
// Returns an array of notifications
await alexa.getNotifications(userId);
// Returns a Queue Object
await alexa.getQueue(userId, device);