Skip to content

Commit 8c30384

Browse files
committed
feat(domain): ✨ migrate domain to x.com
1 parent d612588 commit 8c30384

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

66 files changed

+196
-200
lines changed

README.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ python-twitter
33
A simple Python wrapper for Twitter API v2 :sparkles: :cake: :sparkles:.
44

55
.. image:: https://img.shields.io/endpoint?url=https%3A%2F%2Ftwbadges.glitch.me%2Fbadges%2Fv2
6-
:target: https://developer.twitter.com/en/docs/twitter-api
6+
:target: https://developer.x.com/en/docs/twitter-api
77
:alt: v2
88

99
.. image:: https://github.com/sns-sdks/python-twitter/workflows/Test/badge.svg
@@ -24,15 +24,15 @@ A simple Python wrapper for Twitter API v2 :sparkles: :cake: :sparkles:.
2424
Introduction
2525
============
2626

27-
Twitter has published new version `Twitter API V2 <https://twitter.com/TwitterDev/status/1293593516040269825>`_ for developer at Aug 13, 2020.
27+
Twitter has published new version `Twitter API V2 <https://x.com/TwitterDev/status/1293593516040269825>`_ for developer at Aug 13, 2020.
2828

2929
This library provides a service to easily use this new version Twitter API.
3030

3131
=============
3232
Documentation
3333
=============
3434

35-
You can get all API descriptions `Twitter API v2 Documentation <https://developer.twitter.com/en/docs/twitter-api>`_.
35+
You can get all API descriptions `Twitter API v2 Documentation <https://developer.x.com/en/docs/twitter-api>`_.
3636

3737
Docs for this library on `here <https://sns-sdks.github.io/python-twitter/>`_
3838

docs/docs/authorization.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ So, This will show you how to obtain user access tokens through the 3-legged OAu
77

88
At the beginning, You need a Twitter app, and enable the `3-legged OAuth`.
99

10-
You can get more information at the [official Documentation](https://developer.twitter.com/en/docs/authentication/oauth-1-0a/obtaining-user-access-tokens).
10+
You can get more information at the [official Documentation](https://developer.x.com/en/docs/authentication/oauth-1-0a/obtaining-user-access-tokens).
1111

1212
If you're ready, now let's get started do a simple example with this library.
1313

@@ -30,7 +30,7 @@ Now you can get the url for user to do authenticate,
3030

3131
```python
3232
api.get_authorize_url()
33-
# https://api.twitter.com/oauth/authorize?oauth_token=NPcudxy0yU5T3tBzho7iCotZ3cnetKwcTIRlX0iwRl0
33+
# https://api.x.com/oauth/authorize?oauth_token=NPcudxy0yU5T3tBzho7iCotZ3cnetKwcTIRlX0iwRl0
3434
```
3535
Upon successful authentication, your callback_url would receive a request containing the oauth_token and oauth_verifier parameters.
3636

@@ -51,5 +51,5 @@ Now the api instance will have the user authorization. You can use this to manag
5151

5252
!!! tip "Note"
5353

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.
54+
If you have any confusion, you need to read the [Get user access token](https://developer.x.com/en/docs/authentication/oauth-1-0a/obtaining-user-access-tokens) first.
5555

docs/docs/authorization_oauth2.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
Once you have got the request access for `OAuth2.0`, your app will have the `Client ID` to do `authorization` for `OAuth2.0`.
44

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).
5+
You can get more information at the [documentation](https://developer.x.com/en/docs/twitter-api/oauth2) and the [community content](https://twittercommunity.com/t/announcing-oauth-2-0-general-availability/163555).
66

77
If you're ready, now let's get started do a simple example with this library.
88

@@ -32,7 +32,7 @@ You need save the `code_verifier` for generate access token.
3232

3333
```python
3434
authorization_url, code_verifier, state = api.get_oauth2_authorize_url()
35-
#('https://twitter.com/i/oauth2/authorize?response_type=code&client_id=client_id&redirect_uri=https%3A%2F%2Flocalhost%2F&scope=users.read+tweet.read&state=HVLpccax4G57jMJu1yddJtP55HYMQA&code_challenge=jntz4xjHJ0XHzWA7_Wa6rrA8zHwu4qPZt2MQsv6&code_challenge_method=S256',
35+
#('https://x.com/i/oauth2/authorize?response_type=code&client_id=client_id&redirect_uri=https%3A%2F%2Flocalhost%2F&scope=users.read+tweet.read&state=HVLpccax4G57jMJu1yddJtP55HYMQA&code_challenge=jntz4xjHJ0XHzWA7_Wa6rrA8zHwu4qPZt2MQsv6&code_challenge_method=S256',
3636
# '01wNLFIFeh310NpRLt837gcrvK1JqFrFvoYFU0DnH',
3737
# 'HVLpccax4G57jMJu1yddJtP55HYMQA')
3838
```

docs/docs/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ A Python wrapper around for Twitter API V2 :sparkles: :cake: :sparkles:.
55

66
## Introduction
77

8-
Twitter has published new version [Twitter API V2](https://twitter.com/TwitterDev/status/1293593516040269825) for developer at Aug 13, 2020.
8+
Twitter has published new version [Twitter API V2](https://x.com/TwitterDev/status/1293593516040269825) for developer at Aug 13, 2020.
99

1010
So this library provides a Python interface for this version API. Library work on Python 3.6+.
1111

docs/docs/usage/compliance/batch_compliance.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
These batch compliance endpoints allow you to upload large datasets of Tweet or user IDs to retrieve their compliance status in order to determine what data requires action in order to bring your datasets into compliance. Please note, use of the batch compliance endpoints is restricted to aforementioned use cases, and any other purpose is prohibited and may result in enforcement action.
22

3-
You can get more information at [batch compliance docs](https://developer.twitter.com/en/docs/twitter-api/compliance/batch-compliance/introduction).
3+
You can get more information at [batch compliance docs](https://developer.x.com/en/docs/twitter-api/compliance/batch-compliance/introduction).
44

55
Typically, there are 4 steps involved in working with this endpoint:
66

docs/docs/usage/direct-messages/direct-messages-lookup.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
Direct Messages enable private conversations on Twitter. Direct Messages are one of the most popular features of Twitter, with a wide variety of use cases. These use cases range from group chats among friends to powering customer support for brands around the world. New v2 versions of Direct Messages endpoints will be introduced in stages, and this first stage includes fundamental endpoints for creating Direct Messages and listing Direct Message conversation events. For the first time, the Twitter API v2 supports group conversations.
44

5-
You can get more information for this at [docs](https://developer.twitter.com/en/docs/twitter-api/direct-messages/lookup/introduction)
5+
You can get more information for this at [docs](https://developer.x.com/en/docs/twitter-api/direct-messages/lookup/introduction)
66

77
### Get all messages in a 1-1 conversation
88

docs/docs/usage/direct-messages/manage-direct-messages.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
Direct Messages enable private conversations on Twitter. Direct Messages are one of the most popular features of Twitter, with a wide variety of use cases. These use cases range from group chats among friends, to powering customer support for brands around the world. New v2 versions of Direct Messages endpoints will be introduced in stages, and this first stage includes fundamental endpoints for creating Direct Messages and listing Direct Message conversation events. For the first time, the Twitter API v2 supports group conversations.
44

5-
You can get more information for this at [docs](https://developer.twitter.com/en/docs/twitter-api/direct-messages/manage/introduction)
5+
You can get more information for this at [docs](https://developer.x.com/en/docs/twitter-api/direct-messages/manage/introduction)
66

77

88
### Create a message in a 1-1 conversation with the participant

docs/docs/usage/lists/list-follows.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22

33
List follows lookup group has two available endpoints. You are able to retrieve details on followers of a specified List and get data on which Lists a user follows. These endpoints can be used to enable people to curate and organize Tweets based on what type of Lists other users are following.
44

5-
You can use either [OAuth 1.0a User Context](https://developer.twitter.com/en/docs/authentication/oauth-1-0a) or [OAuth 2.0 Bearer Token](https://developer.twitter.com/en/docs/authentication/oauth-2-0) to authenticate to these endpoints.
5+
You can use either [OAuth 1.0a User Context](https://developer.x.com/en/docs/authentication/oauth-1-0a) or [OAuth 2.0 Bearer Token](https://developer.x.com/en/docs/authentication/oauth-2-0) to authenticate to these endpoints.
66

7-
You can get more information for this at [docs](https://developer.twitter.com/en/docs/twitter-api/lists/list-follows/introduction)
7+
You can get more information for this at [docs](https://developer.x.com/en/docs/twitter-api/lists/list-follows/introduction)
88

99
### Get list's followers
1010

@@ -30,7 +30,7 @@ The manage List follows endpoints allow you to follow and unfollow a List on beh
3030

3131
For these endpoints, there are two methods available: POST and DELETE. The POST method allows you to follow a List, and the DELETE method allows you to delete a List.
3232

33-
You can get more information for this at [docs](https://developer.twitter.com/en/docs/twitter-api/lists/list-follows/introduction)
33+
You can get more information for this at [docs](https://developer.x.com/en/docs/twitter-api/lists/list-follows/introduction)
3434

3535
### Follow a list
3636

docs/docs/usage/lists/list-lookup.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
~~This List lookup group has two available endpoints. You are able to retrieve a specified List by ID and get details on user-owned Lists. With the Lists endpoints, you can build solutions that enable people to curate and organize Tweets based on preferences, interests, groups, or topics.
22

3-
You can use either [OAuth 1.0a User Context](https://developer.twitter.com/en/docs/authentication/oauth-1-0a) or [OAuth 2.0 Bearer Token](https://developer.twitter.com/en/docs/authentication/oauth-2-0) to authenticate to these endpoints. If you choose to use [OAuth 1.0a User Context](https://developer-staging.twitter.com/en/docs/authentication/oauth-1-0a), use the Access Tokens associated with a user that has authorized your App. You can generate Access Tokens using the [3-legged OAuth flow](https://developer-staging.twitter.com/en/docs/authentication/oauth-1-0a/obtaining-user-access-tokens).
3+
You can use either [OAuth 1.0a User Context](https://developer.x.com/en/docs/authentication/oauth-1-0a) or [OAuth 2.0 Bearer Token](https://developer.x.com/en/docs/authentication/oauth-2-0) to authenticate to these endpoints. If you choose to use [OAuth 1.0a User Context](https://developer-staging.x.com/en/docs/authentication/oauth-1-0a), use the Access Tokens associated with a user that has authorized your App. You can generate Access Tokens using the [3-legged OAuth flow](https://developer-staging.x.com/en/docs/authentication/oauth-1-0a/obtaining-user-access-tokens).
44

5-
You can get more information for this at [docs](https://developer.twitter.com/en/docs/twitter-api/lists/list-lookup/introduction)
5+
You can get more information for this at [docs](https://developer.x.com/en/docs/twitter-api/lists/list-lookup/introduction)
66

77
## Lookup a specific list by ID
88

docs/docs/usage/lists/list-members.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
## List members lookup
22
Members lookup group has two available endpoints. You are able to retrieve details on members of a specified List and see which Lists a user is a member of. These endpoints can be used to enable people to curate and organize new Lists based on the membership information.
33

4-
You can use either [OAuth 1.0a User Context](https://developer.twitter.com/en/docs/authentication/oauth-1-0a) or [OAuth 2.0 Bearer Token](https://developer.twitter.com/en/docs/authentication/oauth-2-0) to authenticate to these endpoints.
4+
You can use either [OAuth 1.0a User Context](https://developer.x.com/en/docs/authentication/oauth-1-0a) or [OAuth 2.0 Bearer Token](https://developer.x.com/en/docs/authentication/oauth-2-0) to authenticate to these endpoints.
55

6-
You can get more information for this at [docs](https://developer.twitter.com/en/docs/twitter-api/lists/list-members/introduction)
6+
You can get more information for this at [docs](https://developer.x.com/en/docs/twitter-api/lists/list-members/introduction)
77

88
### Get list's members
99

@@ -30,7 +30,7 @@ The manage List members endpoints allow you to add and remove members to a List
3030

3131
For these endpoints, there are two methods available: POST and DELETE. The POST method allows you to add a member to a List, and the DELETE method allows you to remove a member from a List.
3232

33-
You can get more information for this at [docs](https://developer.twitter.com/en/docs/twitter-api/lists/list-members/introduction)
33+
You can get more information for this at [docs](https://developer.x.com/en/docs/twitter-api/lists/list-members/introduction)
3434

3535
### Add member to a list
3636

0 commit comments

Comments
 (0)