Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Sample application illustrating use of the Asana API

branch: master
Octocat-spinner-32 README Update README July 30, 2012
Octocat-spinner-32 api_bridge.js Update to use upcoming v1.0 of API. April 17, 2012
Octocat-spinner-32 asana.js Initial version. February 24, 2012
Octocat-spinner-32 background.html Initial version. February 24, 2012
Octocat-spinner-32 common.css Updating sprite to be only as large as it needs to be February 29, 2012
Octocat-spinner-32 extension_server.js Initial version. February 24, 2012
Octocat-spinner-32 icon128.png Initial version. February 24, 2012
Octocat-spinner-32 icon19.png Initial version. February 24, 2012
Octocat-spinner-32 jquery-1.7.1.min.js Initial version. February 24, 2012
Octocat-spinner-32 jquery-ui-1.8.10.custom.min.js Initial version. February 24, 2012
Octocat-spinner-32 manifest.json Modified source and manifest to work with manifest version 2 and the … August 21, 2012
Octocat-spinner-32 options.html Modified source and manifest to work with manifest version 2 and the … August 21, 2012
Octocat-spinner-32 options.js Initial version. February 24, 2012
Octocat-spinner-32 options_init.js Modified source and manifest to work with manifest version 2 and the … August 21, 2012
Octocat-spinner-32 options_page.js Modified source and manifest to work with manifest version 2 and the … August 21, 2012
Octocat-spinner-32 options_style.css Initial version. February 24, 2012
Octocat-spinner-32 popup.html Modified source and manifest to work with manifest version 2 and the … August 21, 2012
Octocat-spinner-32 popup.js Modified source and manifest to work with manifest version 2 and the … August 21, 2012
Octocat-spinner-32 popup_style.css Updating sprite to be only as large as it needs to be February 29, 2012
Octocat-spinner-32 quick_add_client.js Initial version. February 24, 2012
Octocat-spinner-32 selection_client.js Initial version. February 24, 2012
Octocat-spinner-32 server_model.js Initial version. February 24, 2012
Octocat-spinner-32 sprite.png Updating sprite to be only as large as it needs to be February 29, 2012
README
This is a free, open-source, sample application demonstrating use of the
Asana API. It takes the form of a Chrome Extension that, when installed,
integrates Asana into your web experience in the following ways:

  * Creates a button in your button-bar which, when clicked, pops up a
    QuickAdd window to create a new task associated with the current web page.
    It will populate the task name with the page title by default, and
    put the URL in the notes, along with any text you may have selected
    when you pressed the button.

  * Installs the special Asana TAB+Q keyboard shortcut. When this key combo
    is pressed from any web page, it brings up the same popup.
    This functionality will operate on any window opened after the extension
    is loaded.

See: http://developer.asana.com/

Files of special interest:

  api_bridge.js:
    Handles generic communication with the API.

  server_model.js:
    Wraps specifics of individual API calls to return objects to calling code.
    This is not a real ORM, just the bare bones necessary to get a few
    simple things done.

  popup.html
    Source for the popup window, contains the top-level logic which drives
    most of the user-facing functionality.

To install:

  1. Download the code, e.g. `git clone git://github.com/Asana/Chrome-Extension-Example.git`
  2. Navigate chrome to `chrome://extensions`
  3. Check the `Developer mode` toggle
  4. Click on `Load Unpacked Extension...`
  5. Select the folder containing the extension
Something went wrong with that request. Please try again.