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)