Skip to content

getList(__fields_expansions_)

daneden edited this page Apr 3, 2022 · 3 revisions

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

Types
Global Variables
Global Functions
Extensions
Clone this wiki locally