Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(quote_tweets): ✨ add parameters for quote_tweets #169

Merged
merged 1 commit into from
Aug 26, 2024
Merged
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
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
Loading