client.lists() (ListsClient).
Methods
addMember
POST /2/lists/{id}/members
Add List Member
Adds a User to a specific List by its ID.
Parameters
Returns:Schemas.AddListsMemberResponse
create
POST /2/lists
Create List
Creates a new List for the authenticated user.
Parameters
Returns:Schemas.CreateListsResponse
delete
DELETE /2/lists/{id}
Delete List
Deletes a specific List owned by the authenticated user by its ID.
Parameters
Returns:Schemas.DeleteListsResponse
getById
GET /2/lists/{id}
Get List by ID
Retrieves details of a specific List by its ID.
Parameters
Returns:Schemas.GetListsByIdResponse
getFollowers
GET /2/lists/{id}/followers Paginated
Get List Followers
Retrieves a list of Users who follow a specific List by its ID.
Parameters
Returns:Schemas.GetListsFollowersResponse (use getFollowersPages(...) for automatic Paginator<...> iteration)
getMembers
GET /2/lists/{id}/members Paginated
Get List Members
Retrieves a list of Users who are members of a specific List by its ID.
Parameters
Returns:Schemas.GetListsMembersResponse (use getMembersPages(...) for automatic Paginator<...> iteration)
getPosts
GET /2/lists/{id}/tweets Paginated
Get List Posts
Retrieves a list of Posts associated with a specific List by its ID.
Parameters
Returns:Schemas.GetListsPostsResponse (use getPostsPages(...) for automatic Paginator<...> iteration)
removeMemberByUserId
DELETE /2/lists/{id}/members/{user_id}
Remove List Member
Removes a User from a List by their ID.
Parameters
Returns:Schemas.RemoveListsMemberByUserIdResponse
update
PUT /2/lists/{id}
Update List
Updates the details of a specific List owned by the authenticated user by its ID.
Parameters
Returns:Schemas.UpdateListsResponse