Skip to content

getMe(fields_expansions_)

daneden edited this page Jan 20, 2022 · 5 revisions

getMe(fields:expansions:)

Returns a variety of information about the currently-authenticated user

public func getMe(fields: Set<User.Field> = [],
                    expansions: [User.Expansions] = []
  )

Equivalent to GET /2/users/me.

Parameters

  • 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 Twitter API response object containing the User and any pinned tweets

Types
Global Variables
Global Functions
Extensions
Clone this wiki locally