Class FetchArgs

Options specifying the data that is to be fetched.

Implements

Constructors

Properties

activeConversationId?: string

The id of the active conversation.

  • Required only for ResourceType.DM_USER_UPDATES.
conversationId?: string

The id of the conversation to fetch.

count?: number

The number of data items to fetch.

cursor?: string

The cursor to the batch of data to fetch.

  • May be used for cursored resources.
  • Has no effect for other resources.
filter?: TweetFilter

The filter for searching tweets.

Required when searching for tweets using ResourceType.TWEET_SEARCH.

fromTime?: Date

The date to start fetching data from.

  • Only works for EResourceType.USER_ANALYTICS.

The granularity of the data to fetch.

  • Only works for EResourceType.USER_ANALYTICS.
id?: string

The id of the target resource.

ids?: string[]

The IDs of the target resources.

maxId?: string

The maximum id of the data to fetch.

metrics?: RawAnalyticsMetric[]

The metrics to fetch.

  • Only works for EResourceType.USER_ANALYTICS.
showVerifiedFollowers?: boolean

Show the verified follower count and relationship counts in the response.

  • Only works for EResourceType.USER_ANALYTICS.

The sorting to use for tweet results.

toTime?: Date

The date to end fetching data at.

  • Only works for EResourceType.USER_ANALYTICS.