# navixy-js-sdk

> Navixy API SDK

Latest version **1.0.2** (published 2019-02-06) · MIT license · 0 weekly downloads

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

## Install

```sh
npm install navixy-js-sdk
pnpm add navixy-js-sdk
yarn add navixy-js-sdk
bun add navixy-js-sdk
```

## Health

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

Negative: deprecated.

## Facts

| | |
|---|---|
| Version | 1.0.2 |
| Published | 2019-02-06 |
| First published | 2019-02-06 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 1.3 MB |
| Known vulnerabilities | 0 (+24 in 1 direct dependencies) |
| Install scripts | no |
| Maintainers | squaregps |

## Links

- npm: https://www.npmjs.com/package/navixy-js-sdk
- npm.io page: https://npm.io/package/navixy-js-sdk

## Dependencies (1)

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

## Recent versions

- 1.0.2 (latest) — 2019-02-06
- 1.0.1 — 2019-02-06
- 1.0.0 — 2019-02-06

## README

# Navixy API JS SDK

## Installation
```
npm i navixy-js-sdk -s
```

## Usage:
With client login and password:
```
const API = new Navixy.Api({
      user:{
         login:'demo@navixy.com',
         password:'demo'
      },
      domain:'demo.navixy.com'
})

API.tracker.list().then(list => console.log(list))
API.request('user/settings').then(settings => console.log(settings))
```

With [hash](https://developers.navixy.com/#/api/resources/user/?id=auth):

```
const API = new Navixy.Api({
      user:{
        hash: '<client-key>'
      }
})

API.tracker.list().then(list => console.log(list))
```

You can change the auth hash dynamically:

```
const API = new Navixy.Api()

// List of the First Client trackers
API.setHash('<first-client-key>').tracker.list().then(list => console.log(list))

 // List of the Second Client trackers
API.setHash('<second-client-key>').tracker.list().then(list => console.log(list))
```

You can call any Navixy API requests: (see [DOCs](https://developers.navixy.com/#/api/getting-started/))

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