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

get_video_comment() only returns 5 replies #7

Open
Fergus-Boyd opened this issue Dec 4, 2018 · 1 comment
Open

get_video_comment() only returns 5 replies #7

Fergus-Boyd opened this issue Dec 4, 2018 · 1 comment

Comments

@Fergus-Boyd
Copy link

Fergus-Boyd commented Dec 4, 2018

From the documentation:

replies.comments[] A list of one or more replies to the top-level comment. Each item in the list is a comment resource.
The list contains a limited number of replies, and unless the number of items in the list equals the value of the snippet.totalReplyCount property, the list of replies is only a subset of the total number of replies available for the top-level comment. To retrieve all of the replies for the top-level comment, you need to call the comments.list method and use the parentId request parameter to identify the comment for which you want to retrieve replies.

https://developers.google.com/youtube/v3/docs/commentThreads

I've addressed this in my fork by creating a new method get_comment_replies() that uses 'https://www.googleapis.com/youtube/v3/comments' instead of 'https://www.googleapis.com/youtube/v3/commentThreads' and takes the parentId as a parameter. The load_comments() method then calls this method if a topLevelComment has one or more replies.

@giridhar247
Copy link

i have been getting an error for item .mat("items")

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

No branches or pull requests

2 participants