createList(name_description_isPrivate_) - daneden/Twift GitHub Wiki

createList(name:description:isPrivate:)

Enables the authenticated user to create a new List.

public func createList(name: String, description: String? = nil, isPrivate: Bool = false)

Equivalent to POST /2/lists

Parameters

  • name: List name (required)
  • description: Description for the list (optional)
  • private: Determines whether the list should be private
  • Returns: A response object containing the name and the ID of the list.