createMember abstract method

Future<TwitterResponse<MemberStateData, void>> createMember({
  1. required String listId,
  2. required String userId,
})

Enables the authenticated user to add a member to a List they own.

Parameters

  • listId: The ID of the List you are adding a member to.

  • userId: The ID of the user you wish to add as a member of the List.

Endpoint Url

Authentication Methods

  • OAuth 2.0 Authorization Code with PKCE
  • OAuth 1.0a

Required Scopes

  • tweet.read
  • users.read
  • list.write

Rate Limits

  • User rate limit (OAuth 2.0 user Access Token): 300 requests per 15-minute window per each authenticated user

Reference

Implementation

Future<TwitterResponse<MemberStateData, void>> createMember(
    {required String listId, required String userId});