traccar-api
TypeScript icon, indicating that this package has built-in type declarations

1.0.5 • Public • Published

@traccar-api

Generated with swagger and fixed some issues with multi-value parameters.

TypeScript/JavaScript client that utilizes 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)

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)

Package Sidebar

Install

npm i traccar-api

Weekly Downloads

72

Version

1.0.5

License

Unlicense

Unpacked Size

939 kB

Total Files

142

Last publish

Collaborators

  • jcardus
  • jpenas