Skip to main content
Access Lists endpoints via client.lists (ListsClient).

Methods

add_member

POST /2/lists/{id}/members Add List Member Adds a User to a specific List by its ID.

Parameters

String
required
id (path parameter).
Hash
required
Request payload.
Returns: Hash

create

POST /2/lists Create List Creates a new List for the authenticated user.

Parameters

Hash
required
Request payload.
Returns: Hash

delete

DELETE /2/lists/{id} Delete List Deletes a specific List owned by the authenticated user by its ID.

Parameters

String
required
id (path parameter).
Returns: Hash

get_by_id

GET /2/lists/{id} Get List by ID Retrieves details of a specific List by its ID.

Parameters

String
required
id (path parameter).
Returns: Hash

get_followers

GET /2/lists/{id}/followers Paginated Get List Followers Retrieves a list of Users who follow a specific List by its ID.

Parameters

String
required
id (path parameter).
Returns: Enumerator<Hash>

get_members

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

String
required
id (path parameter).
Returns: Enumerator<Hash>

get_posts

GET /2/lists/{id}/tweets Paginated Get List Posts Retrieves a list of Posts associated with a specific List by its ID.

Parameters

String
required
id (path parameter).
Returns: Enumerator<Hash>

remove_member_by_user_id

DELETE /2/lists/{id}/members/{user_id} Remove List Member Removes a User from a List by their ID.

Parameters

String
required
id (path parameter).
String
required
user_id (path parameter).
Returns: Hash

update

PUT /2/lists/{id} Update List Updates the details of a specific List owned by the authenticated user by its ID.

Parameters

String
required
id (path parameter).
Hash
required
Request payload.
Returns: Hash