A basic example on using Tango for URL shortening
This commit is contained in:
parent
b2ba65cc45
commit
480ba23011
1 changed files with 7 additions and 0 deletions
7
tango_examples/shorten_url.py
Normal file
7
tango_examples/shorten_url.py
Normal 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
|
||||
Loading…
Add table
Add a link
Reference in a new issue