# alexaquery

> All alexa methods return a promise.

Latest version **2.0.1** (published 2023-07-21) · MIT license · 0 weekly downloads

> **Deprecated.** This package is deprecated.

## Install

```sh
npm install alexaquery
pnpm add alexaquery
yarn add alexaquery
bun add alexaquery
```

## Health

**Score 10/100 (F)** — status: deprecated.

Negative: deprecated.

## Facts

| | |
|---|---|
| Version | 2.0.1 |
| Published | 2023-07-21 |
| First published | 2023-07-17 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 20 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Maintainers | dannypeaky |

## Links

- npm: https://www.npmjs.com/package/alexaquery
- Repository: https://github.com/DannyPeaky/AlexaQueryNode
- npm.io page: https://npm.io/package/alexaquery

## Dependencies (1)

- [axios](https://npm.io/package/axios.md) ^1.4.0

## Recent versions

- 2.0.1 (latest) — 2023-07-21
- 2.0.0 — 2023-07-18
- 1.1.0 — 2023-07-18
- 1.0.1 — 2023-07-18
- 1.0.0 — 2023-07-17

## README

## API Reference

All alexa methods return a promise.

#### Initialize Query Client

```js
import AlexaQuery from "alexaquery";
const alexa = new AlexaQuery(cookiePath);
```

cookiePath is relative to your home directory.

#### Login

```js
// 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);
```

#### Check Login Status

```js
// Returns a boolean
await alexa.checkStatus(userId);
```

#### Get Devices

```js
// Returns an array of devices
await alexa.getDevices(userId);
```

#### Get Notifications

```js
// Returns an array of notifications
await alexa.getNotifications(userId);
```

#### Get Queue

```js
// Returns a Queue Object
await alexa.getQueue(userId, device);
```

---
_Source: https://npm.io/package/alexaquery · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
