Created
August 30, 2012 21:19
-
-
Save jaboutboul/3541323 to your computer and use it in GitHub Desktop.
kivikfinder-bitly
This file contains 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
#create Bitly Url | |
def makeBit(url): | |
b = bitlyapi.BitLy("mauerbac", local_settings.BITLY_API_KEY) #Add bitly API key | |
res = b.shorten(longUrl=url) | |
return res['url'] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment