This page last changed on May 26, 2011 by steve.hull@involver.com.

response

This is a response to a topic. It comes from the Get Satisfaction API.

Attributes

name type description
author person Author of the response
company_promoted boolean Whether or not the response was promoted by the company
content string Body of the response
created_at string String of the (GMT) time and date the response was created
employee boolean Whether or not the response was written by an employee
id integer Response ID
star_promoted boolean Whether or not the response was promoted by being "starred"
topic_id integer ID of the topic this was in response to
url string Get Satisfaction API URL for this response

Examples

{% capture employee_class %}
  {% if response.employee %}
    employee
  {% endif %}
{% endcapture %}
<div class="reply {{ employee_class | strip }}">
  {% if response.author.facebook_id %}
    <!-- Author is Facebook user -->
    <fb:profile-pic uid="{{ response.author.facebook_id }}" size="q" width="30" height="30" style="float: left;"></fb:profile-pic>
    <p>
      <span class="fb_name_wrapper"><fb:name uid="{{ response.author.facebook_id }}" useyou="false"></fb:name></span>
      <span class="employee_label"> (Employee) </span>
      {{ response.content }}<br />
      <span>{{ response.created_at | time_ago_in_words }} ago</span>
      {% if response.company_promoted %}
        <span class="official_response">Official Response</span>
      {% endif %}
    </p>
  {% else %}
    <!-- Author is not Facebook user -->
    <a class="thumb" href="{{ response.author.at_sfn }}"><img src="{{ response.author.avatar_url_small }}" border="0" /></a>
    <p>
    <a href="{{ response.author.at_sfn }}">{{ response.author.name }}</a>
    <span class="employee_label"> (Employee) </span>
      {{ response.content }}<br />
      <span>{{ response.created_at | time_ago_in_words }} ago</span>
      {% if response.company_promoted %}
        <span class="official_response">Official Response</span>
      {% endif %}
    </p>
  {% endif %}
</div>
Document generated by Confluence on Feb 12, 2013 09:09