0.1.7 • Published 5 years ago

accela-construct v0.1.7

Weekly downloads
55
License
-
Repository
github
Last release
5 years ago

Node.js module for the Accela API (v4)

Installation

npm install accela-construct

Provisioning an API test token:

  1. Go to the API v3 reference page.
  2. On the lower left, click on Get an API Test Token.
  3. Enter the agency name (Islandton for testing).
  4. Enter the scope for the test token - this is a space delimited list of scope identifiers from the API reference page.
  5. Put the generated token in your config file.

Example

var accela = require('accela-construct');
var config = require('./path/to/config').config;

accela.setup(config);

accela.owners.getOwners({fullName: 'Smith'}, function (response, error) {
    if(!error) {
        for (var i = 0; i < response.result.length; i++) {
            console.log(response.result[i].fullName);
        }
    }
    else {
        console.log('An error ocurred: ' + error);
    }
});

Additional examples available in the samples directory.

0.1.7

5 years ago

0.1.6

8 years ago

0.1.5

8 years ago

0.1.4

8 years ago

0.1.3

8 years ago

0.1.2

9 years ago

0.1.1

9 years ago

0.1.0

10 years ago

0.0.9

10 years ago

0.0.8

10 years ago

0.0.7

10 years ago

0.0.6

10 years ago

0.0.5

10 years ago

0.0.4

10 years ago

0.0.3

10 years ago

0.0.2

10 years ago