I'm building something similar to the reputation graph / summary on the SO user page.
I'm using this API call to retrieveThe answer explains that the reputation history: /2.0/users/109102/reputation?site=stackoverflow
./users/{ids}/reputation
API method gives a sum of reputation for the period.and So querying for the start/end of 14-Apr-2011 gives me the +5 rep I see this JSON response:in the screenshot.
{
"items": [
{
"user_id": 109102,
"post_id": 4772273,
"post_type": "question",
"vote_type": "up_votes",
"reputation_change": 10,
"on_date": 1334436306
},
{
"user_id": 109102,
"post_id": 1252848,
"post_type": "answer",
"vote_type": "up_votes",
"reputation_change": 280,
"on_date": 1334135022
},
item
1 post_id 4772273 is "InterpolationMode HighQualityBicubic introducing artefacts on edge of resized images". Which is +5 in the screenshot, but reputation_change
of 10 in the API's JSON.
item
2 post_id 1252848 is "What browsers support html 5 websocket?". Which is +10 in the screenshot, but reputation_change
of 280 in the API's JSON.
https://api.stackexchange.com/2.0/users/109102/reputation?fromdate=1334361600&todate=1334448000&site=stackoverflow
I'm expecting the JSONThe screenshot graph runs from 14-Apr-2011 to give me the same results16-Mar-2011. To build something similar I seethink I'll have to hit a URL with the date boundaries for each day in the screenshotrange. Have I got something wrong Is this right, or is there an easier way?