Skip to content

Commit

Permalink
Merge pull request #169 from MerleLiuKun/feat-quote_tweets
Browse files Browse the repository at this point in the history
feat(quote_tweets): ✨ add parameters for quote_tweets
  • Loading branch information
MerleLiuKun authored Aug 26, 2024
2 parents 6bacbbb + f4e8a5d commit f454adc
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pytwitter/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -1224,6 +1224,7 @@ def get_tweet_quote_tweets(
tweet_id: str,
*,
pagination_token: Optional[str] = None,
exclude: Optional[Union[str, List, Tuple]] = None,
max_results: Optional[int] = None,
tweet_fields: Optional[Union[str, List, Tuple]] = None,
expansions: Optional[Union[str, List, Tuple]] = None,
Expand All @@ -1239,6 +1240,7 @@ def get_tweet_quote_tweets(
:param tweet_id: Unique identifier of the Tweet to request.
:param expansions: Fields for the expansions.
:param pagination_token: Token for the pagination.
:param exclude: Fields for types of Tweets to exclude from the response.
:param max_results: The maximum number of results to be returned per page. Number between 10 and the 1000.
By default, each page will return 100 results.
:param tweet_fields: Fields for the tweet object.
Expand Down Expand Up @@ -1267,6 +1269,7 @@ def get_tweet_quote_tweets(
"poll.fields": enf_comma_separated(name="poll_fields", value=poll_fields),
"max_results": max_results,
"pagination_token": pagination_token,
"exclude": enf_comma_separated(name="exclude", value=exclude),
}
return self._get(
url=f"{self.BASE_URL_V2}/tweets/{tweet_id}/quote_tweets",
Expand Down

0 comments on commit f454adc

Please sign in to comment.