destroyPinnedList abstract method

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

Enables the authenticated user to unpin a List.

Parameters

  • userId: The user ID who you are unpin a List on behalf of. It must match your own user ID or that of an authenticating user, meaning that you must pass the Access Tokens associated with the user ID when authenticating your request.

  • listId: The ID of the List that you would like the user id to unpin.

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): 50 requests per 15-minute window per each authenticated user

Reference

Implementation

Future<TwitterResponse<PinnedStateData, void>> destroyPinnedList(
    {required String userId, required String listId});