How do I get comments using the REST API?
Hi:
How do I retrieve comments using the REST API
I figured it would be somethiing like:
/topics/[topicid]/replies/[replyid]/comments
e.g.
/topics/448829/replies/1174459/comments
but that gives a 404 error
How do I retrieve comments using the REST API
I figured it would be somethiing like:
/topics/[topicid]/replies/[replyid]/comments
e.g.
/topics/448829/replies/1174459/comments
but that gives a 404 error
1
person has this question
I have this question, too!
Tell me when someone answers.
The more people who ask this question, the more it gets noticed.
The more people who ask this question, the more it gets noticed.
The company marked this question as answered.
-
Inappropriate?Hi Roland,
The XML response for topics uses the threaded atom extension. Each reply article has an in-reply-to element that has the URL of the parent, which can be either a topic or a reply. It looks something like this:
<thr:in-reply-to>http://api.getsatisfaction.com/topics/ 27521</thr:in-reply-to>
Make sense?
-
Inappropriate?Makes sense.
I guess this means you can't get comments in JSON, right? only in XML right? Any other things that don't work in JSON but work in XML?
I guess then my feature request would be (if possible) to make comments "first class citizens" in the fuure i.e. peers of comments. (I could live without comments, just replies ! Just thinking out loud that we don't really need comments, right?)
I’m happy
-
Inappropriate?The comments are included within the replies, but do not have the in-reply-to element.
I'll have to do a bit of work to do a compare and contrast between the JSON and XML output. This would be good for us to have on hand, though.
Loading Profile...


