Buzz API

Blog Comments

Follow
Answered
Doug Killmer

What's the best API command to use for accessing blog comments?  I'm able to see that there are replies to the blog or journal posts, but I'm not sure which command would display them.

 

 

Comments (4)

Sort by
Brad Marshall
  • Agilix team member
0 Comment actions Permalink
Doug Killmer

Thanks Brad.  I imagine that command would work if I had the comment's messageid.  Do you know where to get those?  I'm currently using GetBlogList, but it only returns posts, not the comments.  

0 Comment actions Permalink
Brad Marshall
  • Agilix team member

Hey Doug, so you would use both GetBlogList and GetBlog to get all necessary parts of a blog. 

List all of a student's blog posts

Run GetBlogList and pass the student's "enrollmentid" and the "itemid."

List all of the comments on a student's blog post

Run GetBlogList and pass the student's "enrollmentid," the "itemid," and post's "id" (see: messages message id) as the "parentid."

Get a student's blog post or a comment

Run GetBlog and pass the student's "enrollmentid," the "itemid," and "messageid." The "messageid" is equivalent to the "id" in the response from GetBlogList (see: messages message id).

===============

Does this help?

0 Comment actions Permalink
Doug Killmer

Yes, that's just what I needed.  Thanks for your help!

0 Comment actions Permalink
Please sign in to leave a comment.