Skip to content

Instantly share code, notes, and snippets.

@mscoutermarsh
Created January 24, 2013 02:30
Show Gist options
  • Select an option

  • Save mscoutermarsh/4617181 to your computer and use it in GitHub Desktop.

Select an option

Save mscoutermarsh/4617181 to your computer and use it in GitHub Desktop.
Example of using taskk.js
# 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