Python Asana API绑定
Asana now has official python bindings its also important to note that Asana took over the “asana” pypi name.
python wrapper for the Asana API
Documentation is available at: AsanaAPI
This project is a work in progress. Here’s what’s currently available:
Todo:
Sample:
from asana import asana
asana_api = asana.AsanaAPI('YourAsanaAPIKey', debug=True)
# see your workspaces
myspaces = asana_api.list_workspaces() #Result: [{u'id': 123456789, u'name': u'asanapy'}]
# create a new project
asana_api.create_project('test project', myspaces[0]['id'])
# create a new task
asana_api.create_task('yetanotherapitest', myspaces[0]['id'], assignee_status='later', notes='some notes')
# add a story to task
asana_api.add_story(mytask, 'omgwtfbbq')