Megaplan client module for NodeJS
A NodeJS library to work with megaplan.ru API ver. 1
Provides a class that implements Megaplan authentication and request signing. Only supports POST requests. The complete API documentation is at: https://dev.megaplan.ru/api/index.html
At first you need to install library
npm install megaplanjs --save
You can generate documentaion with commands:
npm installnpm run docs
Authorization
To authorize using a password:
var megaplan = ;var client = 'my.megaplan.ru';client;
To authorize using tokens:
var megaplan = ;var client = 'xyz.megaplan.ru' access_id secret_key;client;
To authorize using one-time-key:
var megaplan = ;var client = 'xyz.megaplan.ru';client;
Usage
var megaplan = ;// SET here your megaplan URL, login and passwordvar client = "my.megaplan.ru"; client;
Look index.js
for more examples. It's pretty simple to use
Copylefts
Code originally written by Alexej Yaroshevich zxqfox@gmail.com under the MIT License.
Enjoy!