Created
January 24, 2013 02:30
-
-
Save mscoutermarsh/4617181 to your computer and use it in GitHub Desktop.
Example of using taskk.js
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Initialize the taskk api. With your api token. Get yours at https://api.taskk.it | |
| taskk_api = new TaskkAPI('token') | |
| # Test your API key with the ping method | |
| ping = taskk_api.ping() | |
| # define what to do on success. Should say "pong" if you have a valid key. | |
| ping.success (data) -> alert(JSON.stringify(data)) | |
| # define what to do on error | |
| ping.error (data) -> alert(JSON.stringify(data)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment