-
Notifications
You must be signed in to change notification settings - Fork 34
questions object_info_totals_by_date
Luke Baker edited this page Apr 30, 2014
·
2 revisions
Description: Get number of various types of events per day for a single question
Format: XML
URL: GET /questions/7/object_info_totals_by_date.xml?object_type=votes
Parameters:
- object_type: required, string = “votes” | “skips” | “user_submitted_ideas” | “user_sessions” | “appearances_by_creation_date”: Indicates what type of event to count
Returns:
Array of date and count pairs
<?xml version="1.0" encoding="UTF-8"?>
<records type="array">
<record>
<date type="date">2010-10-29</date>
<count type="integer">1</count>
</record>
<record>
<date type="date">2010-11-11</date>
<count type="integer">3</count>
</record>
</records>
Notes:
- Nil object error when object_type not provided
- Appearance_by_creation_date throws nil object error
- Rename appearance_by_creation_date?