- Previous: Product Lists
- Up: Get Satisfaction Documentation
- Next: Topic
Reply
Replies are made to topics or other replies. Similar to topics, they are represented as Atom entries. The annotated sample response below outlines the different features exposed in a reply entry:
- <!-- This is a reply entry -->
- <entry>
- <id>http://localhost:3000/topics/27521/replies/54841</id>
- <!-- Navigation Links:
- rel=reply: a link to the individual reply resource. Represented as a feed-less atom entry
- rel=topic: a link back to the topic this reply is posted in
- rel=stars: POST here to apply a "This answers the question" star to this reply
- -->
- <link rel="reply" href="http://localhost:3000/topics/27521/replies/54841" type="application/atom+xml">
- <link rel="topic" href="http://localhost:3000/topics/27521" type="application/atom+xml">
- <link rel="stars" href="http://localhost:3000/topics/27521/replies/54841/stars" type="application/atom+xml">
- <!-- This element uses the Atom threading extensions to specify the item to with this reply is being made. -->
- <thr:in-reply-to>http://localhost:3000/topics/27521</thr:in-reply-to>
- <!-- Satisfaction specific ID -->
- <sfn:id>54841</sfn:id>
- <!-- Please note that the title is not user-editable, but rather is auto-generated. -->
- <title>Scott responded to "how can i delete my company or hide it from the public?"</title>
- <updated>2007-10-19T16:48:09Z</updated>
- <published>2007-10-19T16:48:09Z</published>
- <author>
- <name>Scott</name>
- <uri>http://localhost:3000/people/13</uri>
- </author>
- <content type="html">
- You can't.
- For a better explanation: http://getsatisfaction.com/satisfaction/topics/satisfaction_is_in_your_hands_but_out_of_your_control
- Basically, A Satisfaction site isn't controlled by the company. It's a place for customers and companies to come together on an equal playing field, free of heavy handed censorship from the company while still giving the company a voice amongst the thousands of dog-piling haters.
- ---
- On a more personalized note, could you tell me why you would want to hide your company?
- </content>
- <!--
- Additional Stats
- flag_count: the number of Abuse/Spam flags that have been added to this reply
- star_count: The number of "Mark as useful" stars that have been applied to this reply
- -->
- <sfn:flag_count>0</sfn:flag_count>
- <sfn:star_count>2</sfn:star_count>
- </entry>
Posting replies
To post a reply to a topic, you make an HTTP POST to the replies sub-resource of a topic. To find this url, you should look at the <link rel="replies"> element of a topic atom entry. Alternatively, if you know the url of a topic, you can add "/replies" onto the end of it to manually form the replies URL.
The HTTP POST should have a form encoded body that has the parameters described below:
The required parameters include:
- reply[content]
- The text content of the reply.
The optional parameters include:
- reply[emotitag][face]
- A value that describes the emoticon face to attach to this reply: one of happy, sad, indifferent, or silly.
- reply[emotitag][feeling]
- A word or two describing in more detail how you are feeling. Examples include anxious, thankful, or frustrated.
- reply[emotitag][intensity]
- A rating of 0-3 that describes the intensity of how you are feeling, 3 being the most intense, 0 being the baseline.
- Previous: Product Lists
- Up: Get Satisfaction Documentation
- Next: Topic

Comments
Please sign in to post a comment.