Created
November 16, 2011 04:22
-
-
Save michelezonca/1369226 to your computer and use it in GitHub Desktop.
Python asynchronous mode
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
| 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