You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.rst
+10-2Lines changed: 10 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -92,9 +92,17 @@ API
92
92
93
93
The API is exposed via the ``twitter.Api`` class.
94
94
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.
96
96
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)::
98
106
99
107
>>> import twitter
100
108
>>> api = twitter.Api(consumer_key='consumer_key',
0 commit comments