getSpaceBuyers(__fields_expansions_) - daneden/Twift GitHub Wiki

getSpaceBuyers(_:fields:expansions:)

Returns a list of user who purchased a ticket to the requested Space. You must authenticate the request using the access token of the creator of the requested Space.

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

Equivalent to GET /2/spaces/:id/buyers

Parameters

  • spaceId: Unique identifier of the Space for which you want to request buyers.
  • 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 Users who bought tickets to the Space, and any requested expansions

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