Skip to content

questions vote_rate

lukebaker edited this page Apr 2, 2012 · 5 revisions

Version: >= 3.0.1
Description: Gets the vote_rate for this question. The vote rate is defined as the number of sessions with at least one vote divided by total number of sessions. The range of possible values is from 0 - 1.
Format: xml
URL: GET /questions/#{question_id}/vote_rate.xml
Parameters: none
Returns: vote rate as hash

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

If there are no sessions it will return a nil value:

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