Skip to content
dmitrig edited this page Sep 14, 2010 · 1 revision

Description: Get prompt object
Format: XML
URL: GET /questions/7/prompts/1.xml
Parameters: none
Returns: Prompt object with two additional fields containing left/right choice data

<?xml version="1.0" encoding="UTF-8"?>
<prompt>
  <created-at type="datetime">2010-07-01T23:48:01+00:00</created-at>
  <id type="integer">1</id>
  <left-choice-id type="integer">10</left-choice-id>
  <question-id type="integer">7</question-id>
  <right-choice-id type="integer">9</right-choice-id>
  <tracking nil="true"></tracking>
  <updated-at type="datetime">2010-07-01T23:48:01+00:00</updated-at>
  <votes-count type="integer">0</votes-count>
  <left-choice-text>bar</left-choice-text>
  <right-choice-text>foo</right-choice-text>
</prompt>

Notes:

  • The ‘tracking’ column is not used by pairwise. The api client can use it to store any
    additional required information.
Clone this wiki locally