-
Notifications
You must be signed in to change notification settings - Fork 34
choices show
dmitrig edited this page Sep 14, 2010
·
4 revisions
Description: Get a chioce object
Format: XML
URL: GET /questions/7/choices/15.xml
Parameters: none
Returns:
Choice object with extra field ‘wins-plus-losses’
<?xml version="1.0" encoding="UTF-8"?>
<choice>
<active type="boolean">false</active>
<created-at type="datetime">2010-07-02T17:29:02+00:00</created-at>
<creator-id type="integer">7</creator-id>
<data>text</data>
<id type="integer">15</id>
<item-id type="integer" nil="true"></item-id>
<local-identifier nil="true"></local-identifier>
<loss-count type="integer">0</loss-count>
<losses type="integer">0</losses>
<position type="integer" nil="true"></position>
<prompt-id type="integer" nil="true"></prompt-id>
<prompts-count type="integer">1</prompts-count>
<prompts-on-the-left-count type="integer">0</prompts-on-the-left-count>
<prompts-on-the-right-count type="integer">0</prompts-on-the-right-count>
<question-id type="integer">7</question-id>
<ratings type="integer" nil="true"></ratings>
<request-id type="integer" nil="true"></request-id>
<score type="float">50.0</score>
<tracking nil="true"></tracking>
<updated-at type="datetime">2010-07-06T23:49:02+00:00</updated-at>
<votes-count type="integer">0</votes-count>
<wins type="integer">0</wins>
</choice>
Notes:
- JSON version does not have wins-plus-losses field, instead returns object with extra “data” attribute!