From 480ba230118dad628298df1d605600f6a018d7d4 Mon Sep 17 00:00:00 2001 From: Ryan McGrath Date: Sun, 14 Jun 2009 18:42:35 -0400 Subject: [PATCH] A basic example on using Tango for URL shortening --- tango_examples/shorten_url.py | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 tango_examples/shorten_url.py diff --git a/tango_examples/shorten_url.py b/tango_examples/shorten_url.py new file mode 100644 index 0000000..12b7668 --- /dev/null +++ b/tango_examples/shorten_url.py @@ -0,0 +1,7 @@ +import tango + +# Shortening URLs requires no authentication, huzzah +twitter = tango.setup() +shortURL = twitter.shortenURL("http://www.webs.com/") + +print shortURL