osome-iu/osometweet

Include an "everything" option within each method option

mr-devs opened this issue · 2 comments

For example, if we want to use the tweet_lookup() method.

You could do something like the following:

resp = self.ot.tweet_lookup(
    tids = random_tweet_id,
    everything = True
    )

And this would be equivalent to including all expansions, tweet.fields, place.fields, poll.fields, tweet.fields, and user.fields.

Another option would be to include and all option for each data object, however, since we have the return_objectfield() methods, I think this might be overkill. It's really easy to just call t_fields = o_utils.return_tweet_fields() and then place t_fields in the ot.tweet_lookup() call. As a result, I think it's best to build out the first option.


Methods

  • tweet_lookup
  • user_lookup_ids
  • user_lookup_usernames
  • get_followers
  • get_following

Please see #32

Thank you, Kaicheng.