mamba

Mamba.ru API wrapper for node.js


Keywords
mamba, mamba.ru, wamba, wamba.ru, api
License
MIT
Install
npm install mamba@0.0.2

Documentation

node-mamba

Mamba.ru API wrapper for node.js. It cares single dependency (md5).

Installation

npm i --save mamba

Usage

Initialize.

var MambaApi = require("mamba");
var mamba = new MambaApi(appId, appSecret[, appPrivate]);

Then use it like this:

mamba.request("achievement.set", {
	sid: sid,
    text: text,
    extra_params: extra_params
}, callback);
...

Or use helper methods:

mamba.achievementSet(sid, text, extra_params, cb);
mamba.anketaGetFlags(oids, cb);
mamba.anketaGetHitlist(sid, period, limit, offset, blocks, ids_only, cb);
mamba.achievementSet({
	sid: sid,
    text: text,
    extra_params: extra_params
}, cb);
...

License

MIT