getSpacesByCreatorIds(__fields_expansions_) - daneden/Twift GitHub Wiki

getSpacesByCreatorIds(_:fields:expansions:)

Returns live or scheduled Spaces created by the specified user IDs. Up to 100 comma-separated IDs can be looked up using this endpoint.

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

Parameters

  • userIds: A list of user IDs (up to 100).
  • 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 Spaces, and any requested expansions