1.0.3 • Published 10 years ago

awesomelib v1.0.3

Weekly downloads
2
License
MIT
Repository
github
Last release
10 years ago

Web application for autolib'

This is a set of CLI commands allowing to retrieve information from you personal account to display them in a meaningful JSON format.

Installation

npm install -g autolib

Then create security file ./src/api/oauth2.js using your own (replace <long_base64_token>) oauth2 initialization token:

var http = require('./http-helper');

module.exports = function(username, password) {
  return http.post('/oauth2/token/', {
    username: username,
    password: password,
    grant_type: 'password'
  }, {
    'Authorization': 'Basic <long_base64_token>',
    'Content-Type': 'application/x-www-form-urlencoded'
  });
};

PS: Will be replaced by a configuration file as soon as possible.

Examples

Run as web application

Use PORT env variable or default port 3788.

autolib --service

Web application available at: http://localhost:3788/

1.0.3

10 years ago

1.0.2

10 years ago

1.0.1

10 years ago

1.0.0

10 years ago

0.12.0

10 years ago

0.11.1

10 years ago

0.11.0

10 years ago

0.10.1

10 years ago

0.10.0

10 years ago

0.9.8

10 years ago

0.9.7

10 years ago

0.9.5

10 years ago

0.9.4

10 years ago

0.9.3

10 years ago

0.9.2

10 years ago

0.9.1

10 years ago

0.9.0

10 years ago