# traccar-api

> traccar-api-client

Latest version **1.0.5** (published 2021-03-23) · Unlicense license · 0 weekly downloads

## Install

```sh
npm install traccar-api
pnpm add traccar-api
yarn add traccar-api
bun add traccar-api
```

## Health

**Score 20/100 (F)** — status: abandoned.

Positive: has types; no vulnerabilities.

Warnings: low downloads; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.5 |
| Published | 2021-03-23 |
| First published | 2021-01-23 |
| Weekly downloads | 0 |
| License | Unlicense |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 917.1 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | jcardus |
| Maintainers | jcardus, jpenas |
| Keywords | traccar, api, axios, typescript, openapi-client, openapi-generator |

## Links

- npm: https://www.npmjs.com/package/traccar-api
- npm.io page: https://npm.io/package/traccar-api

## Dependencies (1)

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

## Alternatives

- [launchdarkly-js-client-sdk](https://npm.io/package/launchdarkly-js-client-sdk.md) — 2.5M weekly downloads
- [@elastic/elasticsearch](https://npm.io/package/@elastic/elasticsearch.md) — 2.1M weekly downloads
- [@c8y/client](https://npm.io/package/@c8y/client.md) — 15.3K weekly downloads
- [@signaldb/maverickjs](https://npm.io/package/@signaldb/maverickjs.md) — 1.7K weekly downloads
- [@bbc/http-transport-cache](https://npm.io/package/@bbc/http-transport-cache.md) — 1.2K weekly downloads

## Recent versions

- 1.0.5 (latest) — 2021-03-23
- 1.0.4 — 2021-03-18
- 1.0.3 — 2021-03-18
- 1.0.2 — 2021-03-14
- 1.0.1 — 2021-03-05
- 1.0.0 — 2021-01-23

## README

## @traccar-api

Generated with swagger and fixed some issues with multi-value parameters.

TypeScript/JavaScript client that utilizes [axios](https://github.com/axios/axios). The generated Node module can be used in the following environments:

Environment
* Node.js
* Webpack
* Browserify

Language level
* ES5 - you must have a Promises/A+ library installed
* ES6

Module system
* CommonJS
* ES6 module system

It can be used in both TypeScript and JavaScript. In TypeScript, the definition should be automatically resolved via `package.json`. ([Reference](http://www.typescriptlang.org/docs/handbook/typings-for-npm-packages.html))

### Installing

```
npm install traccar-api
```
### Example code for devices
```
const {DevicesApi} = require('traccar-api')
const devicesApi = new DevicesApi({
            basePath: 'https://your_traccar_server/api',
            baseOptions: {withCredentials: true}
        })

const devices = devicesApi.devicesGet().then(r => r.data)
```

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