WARNING! Module in development. Only documents.list and document.upload methods supported. But you can add and test new methods by your self.
Installation via npm:
$ npm install issuu --save
var IssuuClient = require('issuu');
var credetials = {
api_key: 'my_api_key',
api_secret: 'my_api_secret'
}
var client = new IssuuClient(credetials);
client.documents.list({}, function(err, documents_list){
if(err) return console.log(JSON.stringify(err));
console.log(JSON.stringify(documents_list));
})
You can use two methods for calling api. Firts:
client.documents.list({}, function(err, documents_list){
if(err) return console.log(JSON.stringify(err));
console.log(JSON.stringify(documents_list));
})
Second:
client.documentsList({}, function(err, documents_list){
if(err) return console.log(JSON.stringify(err));
console.log(JSON.stringify(documents_list));
})
Jaroslav Khorishchenko