From 09cce11143e53325cbc509e6697b8f9fec305710 Mon Sep 17 00:00:00 2001 From: idris Date: Sun, 11 Oct 2009 17:18:44 -0400 Subject: [PATCH] oops my bad. fixed the examples properly this time --- examples/current_trends.py | 2 +- examples/daily_trends.py | 2 +- examples/get_user_mention.py | 2 +- examples/shorten_url.py | 4 ++-- examples/tango_setup.py | 11 ----------- 5 files changed, 5 insertions(+), 16 deletions(-) delete mode 100644 examples/tango_setup.py diff --git a/examples/current_trends.py b/examples/current_trends.py index 6fcfdd7..425cdee 100644 --- a/examples/current_trends.py +++ b/examples/current_trends.py @@ -1,7 +1,7 @@ import twitter """ Instantiate Twython with no Authentication """ -twitter = twitter.setup() +twitter = twython.setup() trends = twitter.getCurrentTrends() print trends diff --git a/examples/daily_trends.py b/examples/daily_trends.py index 6e3a539..987611e 100644 --- a/examples/daily_trends.py +++ b/examples/daily_trends.py @@ -1,7 +1,7 @@ import twitter """ Instantiate Twython with no Authentication """ -twitter = twitter.setup() +twitter = twython.setup() trends = twitter.getDailyTrends() print trends diff --git a/examples/get_user_mention.py b/examples/get_user_mention.py index d150aa1..08b3dff 100644 --- a/examples/get_user_mention.py +++ b/examples/get_user_mention.py @@ -1,6 +1,6 @@ import twitter -twitter = twitter.setup(authtype="Basic", username="example", password="example") +twitter = twython.setup(authtype="Basic", username="example", password="example") mentions = twitter.getUserMentions(count="150") print mentions diff --git a/examples/shorten_url.py b/examples/shorten_url.py index 12b7668..2a744d6 100644 --- a/examples/shorten_url.py +++ b/examples/shorten_url.py @@ -1,7 +1,7 @@ -import tango +import twython # Shortening URLs requires no authentication, huzzah -twitter = tango.setup() +twitter = twython.setup() shortURL = twitter.shortenURL("http://www.webs.com/") print shortURL diff --git a/examples/tango_setup.py b/examples/tango_setup.py deleted file mode 100644 index 56d2429..0000000 --- a/examples/tango_setup.py +++ /dev/null @@ -1,11 +0,0 @@ -import tango - -# Using no authentication and specifying Debug -twitter = tango.setup(debug=True) - -# Using Basic Authentication -twitter = tango.setup(authtype="Basic", username="example", password="example") - -# Using OAuth Authentication (Note: OAuth is the default, specify Basic if needed) -auth_keys = {"consumer_key": "yourconsumerkey", "consumer_secret": "yourconsumersecret"} -twitter = tango.setup(username="example", password="example", oauth_keys=auth_keys)