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
@@ -32,9 +32,9 @@ This library provides a service to easily use this new version Twitter API.
32
32
Documentation
33
33
=============
34
34
35
-
You can get all api description and update at `Twitter API v2: Early Access <https://developer.twitter.com/en/docs/twitter-api/early-access>`_.
35
+
You can get all API descriptions `Twitter API v2 Documentation <https://developer.twitter.com/en/docs/twitter-api>`_.
36
36
37
-
Library docs site on `here <https://sns-sdks.github.io/python-twitter/>`_
37
+
Docs for this library on `here <https://sns-sdks.github.io/python-twitter/>`_
38
38
39
39
40
40
==========
@@ -82,7 +82,7 @@ Using
82
82
83
83
The API is exposed via the ``pytwitter.Api`` class.
84
84
85
-
Now cover features:
85
+
Now covers these features:
86
86
87
87
- Tweets
88
88
- Tweet lookup
@@ -130,7 +130,7 @@ You can initialize with an bearer token:
130
130
>>>from pytwitter import Api
131
131
>>> api = Api(bearer_token="Your bearer token")
132
132
133
-
With user context token:
133
+
With OAuth 1.0A user context token:
134
134
135
135
.. code-block:: python
136
136
@@ -141,7 +141,7 @@ With user context token:
141
141
access_secret="access secret"
142
142
)
143
143
144
-
Or with authorize by user:
144
+
Or with authorization done by user:
145
145
146
146
.. code-block:: python
147
147
@@ -155,7 +155,7 @@ Or with authorize by user:
155
155
'user_id': '123456',
156
156
'screen_name': 'screen name'}
157
157
158
-
Twitter has `announcing OAuth 2.0 beta <https://twittercommunity.com/t/announcing-oauth-2-0-beta/159189>`_
158
+
Twitter has `announced OAuth 2.0 user authentication support with fine-grained scopes <https://twittercommunity.com/t/announcing-oauth-2-0-general-availability/163555>`_
159
159
160
160
Now if you have app with ``OAuth2.0`` client ID. you can do authorize with ``OAuth2``.
Copy file name to clipboardExpand all lines: docs/docs/authorization.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,4 +1,4 @@
1
-
At Twitter api, many endpoints use OAuth 1.0a method to act, or make API requests, on behalf of a Twitter account. For example, if you have a Twitter developer app, you can make API requests on behalf of any Twitter account as long as that user authenticates your app.
1
+
Many endpoints currently use OAuth 1.0a method to act, or make API requests, on behalf of a Twitter account (but OAuth 2.0 with fine-grained scopes is preferred). For example, if you have a Twitter developer app, you can make API requests on behalf of any Twitter account as long as that user authenticates your app.
2
2
3
3
So, This will show you how to obtain user access tokens through the 3-legged OAuth flow.
4
4
@@ -51,5 +51,5 @@ Now the api instance will have the user authorization. You can use this to manag
51
51
52
52
!!! tip "Note"
53
53
54
-
If you have some confuse. you need to read the [Get user access token](https://developer.twitter.com/en/docs/authentication/oauth-1-0a/obtaining-user-access-tokens) first.
54
+
If you have any confusion, you need to read the [Get user access token](https://developer.twitter.com/en/docs/authentication/oauth-1-0a/obtaining-user-access-tokens) first.
Copy file name to clipboardExpand all lines: docs/docs/authorization_oauth2.md
+3-7Lines changed: 3 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,12 +1,8 @@
1
-
After `Sep 10, 2021`, Twitter has released a publicly available beta of our new OAuth 2.0 authorization protocol and fine-grained permission scopes.
2
-
3
-
If you are interested in shaping the future of OAuth 2.0 on the Twitter Developer Platform, can [request access](https://docs.google.com/forms/d/e/1FAIpQLSdUHe0KP5S05EAHLZooUL6Ze5TEBL4RNMUQcTauXKK-xuHMpQ/viewform) to the OAuth 2.0 beta.
4
-
5
1
### Prerequisite
6
2
7
3
Once you have got the request access for `OAuth2.0`, your app will have the `Client ID` to do `authorization` for `OAuth2.0`.
8
4
9
-
You can get more information at the [documentation](https://developer.twitter.com/en/docs/twitter-api/oauth2) and the [community content](https://twittercommunity.com/t/announcing-oauth-2-0-beta/159189).
5
+
You can get more information at the [documentation](https://developer.twitter.com/en/docs/twitter-api/oauth2) and the [community content](https://twittercommunity.com/t/announcing-oauth-2-0-general-availability/163555).
10
6
11
7
If you're ready, now let's get started do a simple example with this library.
12
8
@@ -21,7 +17,7 @@ api = Api(client_id='your client id', oauth_flow=True)
21
17
22
18
!!! tip "Tips"
23
19
24
-
If your app is belong to `Confidential clients`. You need also provide `Client Secret`.
20
+
If your app is a `Confidential client`, you need also provide `Client Secret`.
0 commit comments