Skip to content
This repository has been archived by the owner on Mar 11, 2023. It is now read-only.

Add impression_count to Tweet public metrics #502

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,11 @@ final case class TweetPromotedMetrics(impression_count: Int,
reply_count: Int,
like_count: Int)

final case class TweetPublicMetrics(retweet_count: Int, reply_count: Int, like_count: Int, quote_count: Int)
final case class TweetPublicMetrics(retweet_count: Int,
reply_count: Int,
like_count: Int,
quote_count: Int,
impression_count: Int)

final case class TweetReferencedTweet(`type`: ReferencedTweetType, id: String)

Expand Down
3 changes: 2 additions & 1 deletion src/test/resources/twitter/rest/v2/tweets/tweet.json
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,8 @@
"retweet_count": 0,
"reply_count": 0,
"like_count": 1,
"quote_count": 0
"quote_count": 0,
"impression_count": 0
},
"referenced_tweets": [
{
Expand Down
3 changes: 2 additions & 1 deletion src/test/resources/twitter/rest/v2/tweets/tweets.json
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,8 @@
"retweet_count": 0,
"reply_count": 0,
"like_count": 1,
"quote_count": 0
"quote_count": 0,
"impression_count": 0
},
"referenced_tweets": [
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,8 @@ object TweetResponseFixture {
retweet_count = 0,
reply_count = 0,
like_count = 1,
quote_count = 0
quote_count = 0,
impression_count = 0
)),
referenced_tweets = Some(
Seq(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,8 @@ object TweetsResponseFixture {
retweet_count = 0,
reply_count = 0,
like_count = 1,
quote_count = 0
quote_count = 0,
impression_count = 0
)),
referenced_tweets = Some(
Seq(
Expand Down