Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Reordered functions to match Twitter docs.

I'm trying to keep these functions in the order they appear in the
Twitter docs, because I think it might be easier to look them up later.

	modified:   utils.py
  • Loading branch information...
commit 6b6c5a35cfc9f4a6e869b020721462529affd2eb 1 parent 2956663
@ccg ccg authored committed
Showing with 6 additions and 6 deletions.
  1. +6 −6 twitter_app/utils.py
View
12 twitter_app/utils.py
@@ -73,12 +73,6 @@ def is_authenticated(consumer, connection, access_token):
return json
return False
-def get_friends(consumer, connection, access_token, page=0):
- """Get friends on Twitter"""
- oauth_request = request_oauth_resource(consumer, TWITTER_FRIENDS, access_token, {'page': page})
- json = fetch_response(oauth_request, connection)
- return json
-
def update_status(consumer, connection, access_token, status):
"""Update twitter status, i.e., post a tweet"""
oauth_request = request_oauth_resource(consumer,
@@ -88,3 +82,9 @@ def update_status(consumer, connection, access_token, status):
http_method='POST')
json = fetch_response(oauth_request, connection)
return json
+
+def get_friends(consumer, connection, access_token, page=0):
+ """Get friends on Twitter"""
+ oauth_request = request_oauth_resource(consumer, TWITTER_FRIENDS, access_token, {'page': page})
+ json = fetch_response(oauth_request, connection)
+ return json
Please sign in to comment.
Something went wrong with that request. Please try again.