A basic example on using Tango for URL shortening

This commit is contained in:
Ryan McGrath 2009-06-14 18:42:35 -04:00
parent b2ba65cc45
commit 480ba23011

View file

@ -0,0 +1,7 @@
import tango
# Shortening URLs requires no authentication, huzzah
twitter = tango.setup()
shortURL = twitter.shortenURL("http://www.webs.com/")
print shortURL