INNER CODE UNIT · Python

retweet

trevorhobenshield/twitter-api-client · twitter/account.py:255

    def retweet(self, tweet_id: int) -> dict:
        variables = {"tweet_id": tweet_id, "dark_request": False}
        return self.gql('POST', Operation.CreateRetweet, variables)

    def unretweet(self, tweet_id: int) -> dict:
        variables = {"source_tweet_id": tweet_id, "dark_request": False}
        return self.gql('POST', Operation.DeleteRetweet, variables)

    def like(self, tweet_id: int) -> dict:
        variables = {'tweet_id': tweet_id}
        return self.gql('POST', Operation.FavoriteTweet, variables)

    def unlike(self, tweet_id: int) -> dict:
        variables = {'tweet_id': tweet_id}
        return self.gql('POST', Operation.UnfavoriteTweet, variables)

    def bookmark(self, tweet_id: int) -> dict:
        variables = {'tweet_id': tweet_id}

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…