Initial commit; example Django application for using Twython OAuth with Twitter. Twython = Python Twitter API library/wrapper. Enjoy; a subproject of the mainline Twython effort.

This commit is contained in:
Ryan McGrath 2010-11-07 02:14:40 -05:00
commit fab3d7a216
7 changed files with 223 additions and 0 deletions

View file

@ -0,0 +1,19 @@
from django.conf.urls.defaults import *
# your_app = name of your root djang app.
urlpatterns = patterns('your_app.django_twitter_oauth.views',
# First leg of the authentication journey...
(r'^login/?$', begin_auth),
# Logout, if need be
(r'^/logout?$', logout), # Calling logout and what not
# This is where they're redirected to after authorizing - we'll
# further (silently) redirect them again here after storing tokens and such.
(r'^thanks/?$', thanks),
# An example view using a Twython method with proper OAuth credentials. Clone
# this view and url definition to get the rest of your desired pages/functionality.
(r'^user_timeline/?$', user_timeline),
)