feat: add diary API with backdate support#3
Open
VanillaChief wants to merge 9 commits intoVelocidensity:masterfrom
Open
feat: add diary API with backdate support#3VanillaChief wants to merge 9 commits intoVelocidensity:masterfrom
VanillaChief wants to merge 9 commits intoVelocidensity:masterfrom
Conversation
Add DiaryEntryRequest model and client method using the /show/reviews/add endpoint with backdate parameter. Co-authored-by: Claude <noreply@anthropic.com>
Document that the diary-with-date feature was developed with AI assistance (Claude Opus 4.5, Anthropic) following transparency best practices. Co-authored-by: Claude <noreply@anthropic.com>
Co-authored-by: Claude <noreply@anthropic.com>
Co-authored-by: Claude <noreply@anthropic.com>
Co-authored-by: Claude <noreply@anthropic.com>
Co-authored-by: Claude <noreply@anthropic.com>
Co-authored-by: Claude <noreply@anthropic.com>
- Add get_user_show_progress() to fetch watch progress for a show - Add is_episode_watched() to check if specific episode is watched - Useful for skipping mark-as-watched calls when migrating rewatches Co-authored-by: Claude <noreply@anthropic.com>
Adds ability to delete diary entries via /show/reviews/delete endpoint.
Discovered the correct payload format: {'review_id': <id>}
Co-authored-by: Claude <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Closes #2
Adds methods for interacting with Serializd's diary feature:
New methods:
log_episode_to_diary(show_id, season, episode, date)— log an episode with optional date (defaults to today)get_user_diary(username, page)— fetch diary entries (paginated)get_all_diary_entries(username)— fetch all diary entriesdelete_diary_entry(review_id)— remove a diary entryget_user_show_progress(username, show_id)— get watched episodes for a showis_episode_watched(username, show_id, season, episode)— check if episode is marked watchedNote: I used Claude Opus 4.5 for this. All commits include
Co-authored-by: Claudetrailers for transparency. I completely understand if you prefer not to merge AI-assisted contributions, though.