ListsClient
Class Bases: object Client for lists operationsConstructors
__init__
Parameters
add_member
Add List member
Adds a User to a specific List by its ID.
Parameters
The ID of the List for which to add a member.
Request body
create
Create List
Creates a new List for the authenticated user.
body: Request body
:returns: Response data
:rtype: CreateResponse
Parameters
delete
Delete List
Deletes a specific List owned by the authenticated user by its ID.
Parameters
The ID of the List to delete.
Returns
DeleteResponse - Response data
get_by_id
Get List by ID
Retrieves details of a specific List by its ID.
Parameters
The ID of the List.
A comma separated list of List fields to display.
A comma separated list of fields to expand.
A comma separated list of User fields to display.
Returns
GetByIdResponse - Response data
get_followers
Get List followers
Retrieves a list of Users who follow a specific List by its ID.
Parameters
The ID of the List.
The maximum number of results.
This parameter is used to get a specified ‘page’ of results.
A comma separated list of User fields to display.
A comma separated list of fields to expand.
A comma separated list of Tweet fields to display.
Returns
GetFollowersResponse - Response data
get_members
Get List members
Retrieves a list of Users who are members of a specific List by its ID.
Parameters
The ID of the List.
The maximum number of results.
This parameter is used to get a specified ‘page’ of results.
A comma separated list of User fields to display.
A comma separated list of fields to expand.
A comma separated list of Tweet fields to display.
Returns
GetMembersResponse - Response data
get_posts
Get List Posts
Retrieves a list of Posts associated with a specific List by its ID.
Parameters
The ID of the List.
The maximum number of results.
This parameter is used to get the next ‘page’ of results.
A comma separated list of Tweet fields to display.
A comma separated list of fields to expand.
A comma separated list of Media fields to display.
A comma separated list of Poll fields to display.
A comma separated list of User fields to display.
A comma separated list of Place fields to display.
Returns
GetPostsResponse - Response data
remove_member_by_user_id
Remove List member
Removes a User from a specific List by its ID and the User’s ID.
Parameters
The ID of the List to remove a member.
The ID of User that will be removed from the List.
Returns
RemoveMemberByUserIdResponse - Response data
update
Update List
Updates the details of a specific List owned by the authenticated user by its ID.
Parameters
The ID of the List to modify.
Request body