Added ability to get tweets by list timeline #17
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This commit introduces the ability to fetch tweets using the Twitter list timeline API.
The
group_id
argument toget_activities()
can now be an arbitrary string, which is used as the slug for a list. If nouser_id
is given then the current API user screenname is used to search for lists. If auser_id
is given, it is used as theowner_screen_name
query param, allowing one API user to get results for lists created by other users.Though barely any new functionality was added in this commit I attempted to add a new test which checks that the correct URL gets requested. Unfortunately I cannot get it to pass because 'https://api.twitter.com/1.1/account/verify_credentials.json' gets called first for some reason. I have not used mox for testing before and would appreciate any help getting this test to run.
(Background: my personal use case for this functionality is to make a list of everyone on twitter I follow who doesn’t have a microformats-enabled site and follow them all through one PuSH subscription rather than separate ones for each user).