Skip to content

Commit f454adc

Browse files
authored
Merge pull request #169 from MerleLiuKun/feat-quote_tweets
feat(quote_tweets): ✨ add parameters for quote_tweets
2 parents 6bacbbb + f4e8a5d commit f454adc

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

pytwitter/api.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1224,6 +1224,7 @@ def get_tweet_quote_tweets(
12241224
tweet_id: str,
12251225
*,
12261226
pagination_token: Optional[str] = None,
1227+
exclude: Optional[Union[str, List, Tuple]] = None,
12271228
max_results: Optional[int] = None,
12281229
tweet_fields: Optional[Union[str, List, Tuple]] = None,
12291230
expansions: Optional[Union[str, List, Tuple]] = None,
@@ -1239,6 +1240,7 @@ def get_tweet_quote_tweets(
12391240
:param tweet_id: Unique identifier of the Tweet to request.
12401241
:param expansions: Fields for the expansions.
12411242
:param pagination_token: Token for the pagination.
1243+
:param exclude: Fields for types of Tweets to exclude from the response.
12421244
:param max_results: The maximum number of results to be returned per page. Number between 10 and the 1000.
12431245
By default, each page will return 100 results.
12441246
:param tweet_fields: Fields for the tweet object.
@@ -1267,6 +1269,7 @@ def get_tweet_quote_tweets(
12671269
"poll.fields": enf_comma_separated(name="poll_fields", value=poll_fields),
12681270
"max_results": max_results,
12691271
"pagination_token": pagination_token,
1272+
"exclude": enf_comma_separated(name="exclude", value=exclude),
12701273
}
12711274
return self._get(
12721275
url=f"{self.BASE_URL_V2}/tweets/{tweet_id}/quote_tweets",

0 commit comments

Comments
 (0)