indooratlas-api

1.0.0 • Public • Published

IndoorAtlas API

Installation

npm install indooratlas --save

Requiring

// Wait for login to complete to use the api
require('indooratlas').create('username', 'password', function(err, atlas) {
 
});

User Data

atlas.user(function(err, data) {
    // data contains the user data
});

User Data

atlas.user(function(err, data) {
    // data contains the user data
});

Venues

Fetch global venues

atlas.globalVenues(function(err, data) {
    // data contains the global venue data
});

Fetch global venues in geographic region

atlas.globalVenues({
    latlon: '51.50232867181172,-0.05566772460937841',
    radius: 5187,
    json: true
}, function(err, data) {
    // data contains the global venue data
});

Fetch your user venues

atlas.venues(function(err, data) {
    // data contains your venues
});

Applications

Create an application

atlas.createApplication({
    name: 'App name',
    description: 'Description'
}, function(err, data) {
 
});

Delete an application

atlas.deleteApplication(applicationId, function(err, data) {
 
});

Fetch your application data

atlas.applications(function(err, data) {
 
});

Fetch API keys for an application

atlas.applicationApiKeys(applicationId, function(err, data) {
 
});

Package Sidebar

Install

npm i indooratlas-api

Weekly Downloads

0

Version

1.0.0

License

MIT

Last publish

Collaborators

  • austinkelleher