Skip to content

Question votes per uploaded choice

lukebaker edited this page Oct 17, 2012 · 4 revisions

Version: >= 3.0.1
Description: Gets the average number of votes per uploaded choice. The range of possible values is 0 - ∞
Format: xml
URL: GET /questions/#{question_id}/votes_per_uploaded_choice.xml?only_active=true
Returns: value
Parameters:

only_active optional, defaults to false. If true it'll only include active choices in the calculation

<?xml version="1.0" encoding="UTF-8"?>
<hash>
  <value type="float">13.7317073170732</value>
</hash>

If there are no sessions:

<?xml version="1.0" encoding="UTF-8"?>
<hash>
  <value nil="true"></value>
</hash>