getPinnedLists(__fields_expansions_) - daneden/Twift GitHub Wiki

getPinnedLists(_:fields:expansions:)

Returns all Lists a specified user has pinned.

public func getPinnedLists(_ userId: User.ID,
                             fields: Set<List.Field> = [],
                             expansions: [List.Expansions] = []
  )

Parameters

  • userId: The user ID whose pinned Lists you would like to retrieve.
  • fields: Any additional fields to include on returned objects
  • expansions: Objects and their corresponding fields that should be expanded in the includes property

Returns

A response object containing an array of lists pinned by the user, any requested expansions, and a meta object with pagination information

⚠️ **GitHub.com Fallback** ⚠️