Skip to content

addBookmark(__userId_)

daneden edited this page Apr 3, 2022 · 2 revisions

addBookmark(_:userId:)

Causes the user ID of an authenticated user identified in the path parameter to Bookmark the target Tweet

public func addBookmark(_ tweetId: Tweet.ID, userId: User.ID)

Equivalent to POST /2/users/:id/bookmarks

Parameters

  • tweetId: The ID of the Tweet that you would like the userId to Bookmark.
  • userId: The user ID who you are liking a Tweet on behalf of. It must match your own user ID or that of an authenticating user.

Returns

A response object containing a BookmarkResponse

Types
Global Variables
Global Functions
Extensions
Clone this wiki locally