Skip to content
This repository was archived by the owner on Jul 9, 2019. It is now read-only.

joeyvandijk/asana-rest-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

REMARK

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.

       

LEGACY

This is a NPM module which can be used with NodeJS as a tool for:

  • calling the Asana REST API.

ROADMAP

  • 0.7.0 export
    • your tasks into a json-file
    • update npm test with mock-server
  • 0.8.0 import
    • your json-file into Asana
    • transfer/copy data from 1 workspace into another
  • 0.9.0 OAuth support
  • 1.0.0 bugfixes

DOCUMENTATION

How to use this NPM module can be found at joeyvandijk.github.io/asana-rest-api or use the test/ directory for test examples.

EXAMPLE

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);
});

About

[DEPRECATED] A Node.js implementation for the Asana REST API.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published