def getToken(request, user_name): twapi = Twapi() auth = twapi.getAccessToken(user_name) return HttpResponse( "auth.oauth_token %s auth.oauth_token_secret %s auth.auth_url %s" % (auth["oauth_token"], auth["oauth_token_secret"], auth["auth_url"]) )
def timeline(request, user_name): twapi = Twapi() tl = twapi.getTimeline(user_name) context = {"user_name": user_name, "tweet_list": tl} return render(request, "reader/tweetlist.html", context)
def recordToken(request, user_name, verifier): twapi = Twapi() twapi.recordToken(user_name, verifier) return HttpResponse("Recorded...")