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

Added more detailed results to the feed_list query #96

Merged
merged 6 commits into from
Nov 7, 2024

Conversation

pgulley
Copy link
Member

@pgulley pgulley commented Nov 5, 2024

for some reason, the api service gives both a 'feeds' and 'feed_details' endpoint to iterate through source feeds- most of the useful information is contained in the latter. I'm tempted to just replace one with the other- I doubt that there are any consumers of this endpoint outside of the org- but for now I've just made a switch so you can optionally get more detail while leaving the previous behavior as a default.

mediacloud/api.py Outdated Show resolved Hide resolved
While I'm at it...
Enable a call to get all the collections a single source belongs to via the API client
@pgulley pgulley requested a review from philbudne November 6, 2024 22:42
params: Dict[Any, Any] = dict(limit=limit, offset=offset)
if name:
params['name'] = name
if platform:
params['platform'] = platform
if source_id:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm assuming source_id 0 is unlikely to exist?!

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

that strikes me as a fair assumption!!

@pgulley pgulley merged commit 2d613bc into mediacloud:main Nov 7, 2024
0 of 2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants