getList(__fields_expansions_) - daneden/Twift GitHub Wiki

getList(_:fields:expansions:)

Returns the details of a specified List.

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

Equivalent to GET /2/lists/:list_id

Parameters

  • listId: The ID of the List to lookup.
  • 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 the List and expanded objects

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