getSpace(__fields_expansions_) - daneden/Twift GitHub Wiki

getSpace(_:fields:expansions:)

Returns a variety of information about a single Space specified by the requested ID.

public func getSpace(_ id: Space.ID,
                       fields: Set<Space.Field> = [],
                       expansions: [Space.Expansions] = []
  )

Parameters

  • id: Unique identifier of the Space to request.
  • 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 requested Space and any requested expansions