Answered
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.
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)
https://api.agilixbuzz.com/js/docs/#!/Command/GetBlog
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.
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?
Yes, that's just what I needed. Thanks for your help!