trait TwitterTweetLookupClient extends AnyRef
Implements the available requests for the v2 tweet lookup
resource.
- Alphabetic
- By Inheritance
- TwitterTweetLookupClient
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Abstract Value Members
- abstract val restClient: RestClient
- Attributes
- protected
Concrete Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native() @HotSpotIntrinsicCandidate()
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def lookupTweet(id: String, expansions: Seq[TweetExpansions] = Seq.empty[TweetExpansions], mediaFields: Seq[MediaFields] = Seq.empty[MediaFields], placeFields: Seq[PlaceFields] = Seq.empty[PlaceFields], pollFields: Seq[PollFields] = Seq.empty[PollFields], tweetFields: Seq[TweetFields] = Seq.empty[TweetFields], userFields: Seq[UserFields] = Seq.empty[UserFields]): Future[RatedData[TweetResponse]]
Returns a variety of information about a single Tweet specified by the requested ID.
Returns a variety of information about a single Tweet specified by the requested ID. For more information see https://developer.twitter.com/en/docs/twitter-api/tweets/lookup/api-reference/get-tweets-id
- id
: Unique identifier of the Tweet to request.
- expansions
: Optional, by default is
Seq.empty
Expansions enable you to request additional data objects that relate to the originally returned Tweets. The ID that represents the expanded data object will be included directly in the Tweet data object, but the expanded object metadata will be returned within the includes response object, and will also include the ID so that you can match this data object to the original Tweet object.- mediaFields
: Optional, by default is
Seq.empty
This fields parameter enables you to select which specific Media fields will deliver in each returned Tweet. The Tweet will only return media fields if the Tweet contains media and if you've also included theexpansions=attachments.media_keys
query parameter in your request. While the media ID will be located in the Tweet object, you will find this ID and all additional media fields in the includes data object.- placeFields
: Optional, by default is
Seq.empty
This fields parameter enables you to select which specific place fields will deliver in each returned Tweet. The Tweet will only return place fields if the Tweet contains a place and if you've also included theexpansions=geo.place_id
query parameter in your request. While the place ID will be located in the Tweet object, you will find this ID and all additional place fields in the includes data object.- pollFields
: Optional, by default is
Seq.empty
This fields parameter enables you to select which specific poll fields will deliver in each returned Tweet. The Tweet will only return poll fields if the Tweet contains a poll and if you've also included theexpansions=attachments.poll_ids
query parameter in your request. While the poll ID will be located in the Tweet object, you will find this ID and all additional poll fields in the includes data object.- tweetFields
: Optional, by default is
Seq.empty
This fields parameter enables you to select which specific Tweet fields will deliver in each returned Tweet object. You can also include thereferenced_tweets.id
expansion to return the specified fields for both the original Tweet and any included referenced Tweets. The requested Tweet fields will display in both the original Tweet data object, as well as in the referenced Tweet expanded data object that will be located in the includes data object.- userFields
: Optional, by default is
Seq.empty
This fields parameter enables you to select which specific user fields will deliver in each returned Tweet. While the user ID will be located in the original Tweet object, you will find this ID and all additional user fields in the includes data object.- returns
: The representation of the tweet.
- def lookupTweets(ids: Seq[String], expansions: Seq[TweetExpansions] = Seq.empty[TweetExpansions], mediaFields: Seq[MediaFields] = Seq.empty[MediaFields], placeFields: Seq[PlaceFields] = Seq.empty[PlaceFields], pollFields: Seq[PollFields] = Seq.empty[PollFields], tweetFields: Seq[TweetFields] = Seq.empty[TweetFields], userFields: Seq[UserFields] = Seq.empty[UserFields]): Future[RatedData[TweetsResponse]]
Returns a variety of information about the Tweet specified by the requested ID or list of IDs.
Returns a variety of information about the Tweet specified by the requested ID or list of IDs. For more information see https://developer.twitter.com/en/docs/twitter-api/tweets/lookup/api-reference/get-tweets
- ids
: A comma separated list of Tweet IDs. Up to 100 are allowed in a single request.
- expansions
: Optional, by default is
Seq.empty
Expansions enable you to request additional data objects that relate to the originally returned Tweets. The ID that represents the expanded data object will be included directly in the Tweet data object, but the expanded object metadata will be returned within the includes response object, and will also include the ID so that you can match this data object to the original Tweet object.- mediaFields
: Optional, by default is
Seq.empty
This fields parameter enables you to select which specific Media fields will deliver in each returned Tweet. The Tweet will only return media fields if the Tweet contains media and if you've also included theexpansions=attachments.media_keys
query parameter in your request. While the media ID will be located in the Tweet object, you will find this ID and all additional media fields in the includes data object.- placeFields
: Optional, by default is
Seq.empty
This fields parameter enables you to select which specific place fields will deliver in each returned Tweet. The Tweet will only return place fields if the Tweet contains a place and if you've also included theexpansions=geo.place_id
query parameter in your request. While the place ID will be located in the Tweet object, you will find this ID and all additional place fields in the includes data object.- pollFields
: Optional, by default is
Seq.empty
This fields parameter enables you to select which specific poll fields will deliver in each returned Tweet. The Tweet will only return poll fields if the Tweet contains a poll and if you've also included theexpansions=attachments.poll_ids
query parameter in your request. While the poll ID will be located in the Tweet object, you will find this ID and all additional poll fields in the includes data object.- tweetFields
: Optional, by default is
Seq.empty
This fields parameter enables you to select which specific Tweet fields will deliver in each returned Tweet object. You can also include thereferenced_tweets.id
expansion to return the specified fields for both the original Tweet and any included referenced Tweets. The requested Tweet fields will display in both the original Tweet data object, as well as in the referenced Tweet expanded data object that will be located in the includes data object.- userFields
: Optional, by default is
Seq.empty
This fields parameter enables you to select which specific user fields will deliver in each returned Tweet. While the user ID will be located in the original Tweet object, you will find this ID and all additional user fields in the includes data object.- returns
: The representation of the search results.
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])