destroyBookmark abstract method

Future<TwitterResponse<BookmarkStateData, void>> destroyBookmark({
  1. required String userId,
  2. required String tweetId,
})

Allows a user or authenticated user ID to remove a Bookmark of a Tweet.

Parameters

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

  • tweetId: The ID of the Tweet that you would like the id to remove a Bookmark of.

Endpoint Url

Authentication Methods

  • OAuth 2.0 Authorization Code with PKCE

Required Scopes

  • tweet.read
  • users.read
  • bookmark.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<BookmarkStateData, void>> destroyBookmark(
    {required String userId, required String tweetId});