Skip to content

Instantly share code, notes, and snippets.

@michelezonca
Created November 16, 2011 04:22
Show Gist options
  • Select an option

  • Save michelezonca/1369226 to your computer and use it in GitHub Desktop.

Select an option

Save michelezonca/1369226 to your computer and use it in GitHub Desktop.
Python asynchronous mode
from Bitly import Bitly
obj = Bitly("MY_PUBLIC_KEY", "MY_PRIVATE_KEY")
def my_function(result):
print result
obj.getShortenedUrl("http://mashape.com", "mashape", "apikey", my_function)
print "waiting"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment