Due to the arrival of the official Node.JS library for the Asana REST API, I have decided not to proceed finishing this library. This repository is only ment for reference and will not be supported any more.
This is a NPM module which can be used with NodeJS as a tool for:
- calling the Asana REST API.
0.7.0export- your tasks into a
json-file - update
npm testwith mock-server
- your tasks into a
0.8.0import- your
json-file into Asana - transfer/copy data from 1 workspace into another
- your
0.9.0OAuth support1.0.0bugfixes
How to use this NPM module can be found at joeyvandijk.github.io/asana-rest-api or use the test/ directory for test examples.
To get started this module supports streaming (streams2) and callbacks, but to get an idea about the way the API is set up see the example below or have a look at the documentation.
var asana = require('asana-rest-api');
var api = new asana('key-you-have-copied');
api.workspaces.list().on('readable',function(){
console.log('A workspace object:',this.read());
}).on('end',function(){
console.log('All workspaces received.');
}).on('error',function(err){
console.log('An API error: ',err);
});