Hi there,
I’m currently using the v1 Get content comments endpoint to retrieve comments (including author details) on pages and blog posts. I’m passing in history
to expand
to then retrieve the comment author details as described in this forum post.
I’m in the process on investigating a transition to the v2 API and I’m unsure whether it’s possible to retrieve the author details alongside comments?
Seemingly the equivalent API is v2 Get footer comments for page and v2
Get footer comments for blog post, however these by default don’t return the author details, and don’t include an expand
parameter. So seemingly to retrieve all comments for a page/blog post one would need to:
- Query v2 Get footer comments for page/blog post and get
version.authorId
for all results - Use the v1 Get multiple users using ids endpoint to lookup all authors from previous call
- Merge the comment and author values
Is there a simpler approach to the above? And if not, would it be possible to update the v2 Get footer comments for page/blog post endpoints to support returning author details as part of the comment payload?