pinList(__userId_) - daneden/Twift GitHub Wiki

pinList(_:userId:)

Enables the authenticated user to pin a List.

public func pinList(_ listId: List.ID, userId: User.ID)

Equivalent to POST /2/users/:user_id/pinned_lists

Parameters

  • listId: The ID of the List that you would like the user id to pin.
  • userId: The user ID who you are pinning a List on behalf of. It must match your own user ID or that of an authenticating user.

Returns

A response object containing the result of this pin list request