Skip to content

Commit 9e4d4d1

Browse files
committed
document how to generate an oauth token - issue bear#192
1 parent 40f1c28 commit 9e4d4d1

1 file changed

Lines changed: 10 additions & 2 deletions

File tree

README.rst

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,9 +92,17 @@ API
9292

9393
The API is exposed via the ``twitter.Api`` class.
9494

95-
The python-twitter library now only supports oAuth authentication as the Twitter devs have indicated that OAuth is the only method that will be supported moving forward.
95+
The python-twitter library now only supports OAuth authentication as the Twitter devs have indicated that OAuth is the only method that will be supported moving forward.
9696

97-
To create an instance of the ``twitter.Api`` with login credentials (Twitter now requires an oAuth Access Token for all API calls)::
97+
To generate an Access Token you have to pick what type of access your application requires and then do one of the following::
98+
99+
- `Generate a token to access your own account <https://dev.twitter.com/oauth/overview/application-owner-access-tokens>`
100+
- `Generate a pin-based token <https://dev.twitter.com/oauth/pin-based>`
101+
- use the helper script `get_access_token.py <https://github.com/bear/python-twitter/blob/master/get_access_token.py>`
102+
103+
For full details see the `Twitter OAuth Overview <https://dev.twitter.com/oauth/overview>`
104+
105+
To create an instance of the ``twitter.Api`` with login credentials (Twitter now requires an OAuth Access Token for all API calls)::
98106

99107
>>> import twitter
100108
>>> api = twitter.Api(consumer_key='consumer_key',

0 commit comments

Comments
 (0)