Package Exports
- nxus-asana
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (nxus-asana) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
Nxus Asana
A Nxus module for interacting with the Asana API. Built on top of the Asana API module.
Installation
> npm install nxus-asana --saveUsage
The module exposes the API client through a series of Nxus responders. First, you'll need to enter your personal access token in the package.json config:
'config': {
'asana-api': {
'token': 'your token goes here'
}
}or using an env variable ASANA_PERSONAL_TOKEN.
Once the token is present, you can access any of the API endpoints using the corresponding provider:
app.get('asana-api').users().then((Users) => {Users.findbyId(...)})For how to use the API, and which methods are provided by each endpoint, take a look at the Asana API docs or the Asana NPM Module.
API
Module
A Nxus module for interacting with the Asana API. Built on top of the Asana API module.
Configuration
The module exposes the API client through a series of Nxus responders. First, you'll need to enter your personal access token in the package.json config:
'config': {
'asana-api': {
'token': 'your token goes here'
}
}or using an env variable ASANA_PERSONAL_TOKEN.
Examples
app.get('asana-api').users().then(...)attachments
Returns the attachments endpoint
Returns function A wrapper for the Asana API Attachments endpoint.
events
Returns the events endpoint
Returns function A wrapper for the Asana API Events endpoint.
me
Returns the current Asana user
Returns Object The current user's object.
projects
Returns the projects endpoint
Returns function A wrapper for the Asana API Projects endpoint.
stories
Returns the stories endpoint
Returns function A wrapper for the Asana API Stories endpoint.
tags
Returns the tags endpoint
Returns function A wrapper for the Asana API Tags endpoint.
tasks
Returns the tasks endpoint
Returns function A wrapper for the Asana API Tasks endpoint.
teams
Returns the teams endpoint
Returns function A wrapper for the Asana API Teams endpoint.
users
Returns the users endpoint
Returns function A wrapper for the Asana API Users endpoint.
workspaces
Returns the workspaces endpoint
Returns function A wrapper for the Asana API Workspaces endpoint.