Twitter API v2 Client
+ .. versionadded:: 4.0
+
Parameters
----------
bearer_token : Optional[str]
The request succeeds with no action when the authenticated user sends a
request to a user they're not following or have already unfollowed.
+ .. versionchanged:: 4.2
+ Renamed from :meth:`Client.unfollow`
+
Parameters
----------
target_user_id : Union[int, str]
request to a user they're already following, or if they're sending a
follower request to a user that does not have public Tweets.
+ .. versionchanged:: 4.2
+ Renamed from :meth:`Client.follow`
+
Parameters
----------
target_user_id : Union[int, str]
Returns a list of users who are muted by the authenticating user.
+ .. versionadded:: 4.1
+
Parameters
----------
expansions : Union[List[str], str]
Return live or scheduled Spaces matching your specified search terms
+ .. versionadded:: 4.1
+
+ .. versionchanged:: 4.2
+ ``state`` is now an optional parameter.
+
Parameters
----------
query : str
specified user IDs if specified). Up to 100 comma-separated Space or
user IDs can be looked up using this endpoint.
+ .. versionadded:: 4.1
+
Parameters
----------
ids : Union[List[str], str]
Returns a variety of information about a single Space specified by the
requested ID.
+ .. versionadded:: 4.1
+
Parameters
----------
id : Union[List[str], str]
def delete_list(self, id):
"""Enables the authenticated user to delete a List that they own.
+ .. versionadded:: 4.2
+
Parameters
----------
id : Union[int, str]
"""Enables the authenticated user to remove a member from a List they
own.
+ .. versionadded:: 4.2
+
Parameters
----------
id : Union[int, str]
def unfollow_list(self, list_id):
"""Enables the authenticated user to unfollow a List.
+ .. versionadded:: 4.2
+
Parameters
----------
list_id : Union[int, str]
def unpin_list(self, list_id):
"""Enables the authenticated user to unpin a List.
+ .. versionadded:: 4.2
+
Parameters
----------
list_id : Union[int, str]
"""Enables the authenticated user to update the meta data of a
specified List that they own.
+ .. versionadded:: 4.2
+
Parameters
----------
id : Union[int, str]
def create_list(self, name, *, description=None, private=None):
"""Enables the authenticated user to create a List.
+ .. versionadded:: 4.2
+
Parameters
----------
name : str
def add_list_member(self, id, user_id):
"""Enables the authenticated user to add a member to a List they own.
+ .. versionadded:: 4.2
+
Parameters
----------
id : Union[int, str]
def follow_list(self, list_id):
"""Enables the authenticated user to follow a List.
+ .. versionadded:: 4.2
+
Parameters
----------
list_id : Union[int, str]
def pin_list(self, list_id):
"""Enables the authenticated user to pin a List.
+ .. versionadded:: 4.2
+
Parameters
----------
list_id : Union[int, str]
Returns a list of recent compliance jobs.
+ .. versionadded:: 4.1
+
Parameters
----------
type : str
def get_compliance_job(self, id):
"""Get a single compliance job with the specified ID.
+ .. versionadded:: 4.1
+
Parameters
----------
id : Union[int, str]
You can run one batch job at a time.
+ .. versionadded:: 4.1
+
Parameters
----------
type : str