Skip to content
This repository was archived by the owner on Apr 3, 2022. It is now read-only.

Commit 420ee5f

Browse files
Henrik LiedHenrik Lied
authored andcommitted
Added API Usage to the documentation
1 parent ddea889 commit 420ee5f

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

README.markdown

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,18 @@
66
- Django 1.0 (or trunk)
77
- Twitter oAuth closed beta invite
88

9+
## API Usage
10+
Use the API resources listed on the [REST API Documentation](http://apiwiki.twitter.com/REST+API+Documentation).
11+
I've currently implemented two functions, which you can see in the end of twitter_app/utils.py.
12+
13+
**Example:**
14+
15+
def delete_status_message(consumer, connection, access_token, tweet_id):
16+
oauth_request = request_oauth_resource(consumer, 'http://twitter.com/statuses/destroy/%s.json' % tweet_id, access_token)
17+
json = fetch_response(oauth_request, connection)
18+
return json
19+
20+
921
## Installation
1022
Add the 'twitter_app' directory somewhere on your 'PYTHONPATH', put it into 'INSTALLED_APPS' in your settings file.
1123
Fill in your CONSUMER_KEY and CONSUMER_SECRET either in 'twitter_app/utils.py' or in your settings file.

0 commit comments

Comments
 (0)