Skip to main content
replaced http://stackapps.com/ with https://stackapps.com/
Source Link

I'm building something similar to the reputation graph / summary on the SO user page.

rep

The answeranswer explains that the /users/{ids}/reputation API method gives a sum of reputation for the period. So querying for the start/end of 14-Apr-2011 gives me the +5 rep I see in the screenshot.

https://api.stackexchange.com/2.0/users/109102/reputation?fromdate=1334361600&todate=1334448000&site=stackoverflow

The screenshot graph runs from 14-Apr-2011 to 16-Mar-2011. To build something similar I think I'll have to hit a URL with the date boundaries for each day in the range. Is this right, or is there an easier way?

I'm building something similar to the reputation graph / summary on the SO user page.

rep

The answer explains that the /users/{ids}/reputation API method gives a sum of reputation for the period. So querying for the start/end of 14-Apr-2011 gives me the +5 rep I see in the screenshot.

https://api.stackexchange.com/2.0/users/109102/reputation?fromdate=1334361600&todate=1334448000&site=stackoverflow

The screenshot graph runs from 14-Apr-2011 to 16-Mar-2011. To build something similar I think I'll have to hit a URL with the date boundaries for each day in the range. Is this right, or is there an easier way?

I'm building something similar to the reputation graph / summary on the SO user page.

rep

The answer explains that the /users/{ids}/reputation API method gives a sum of reputation for the period. So querying for the start/end of 14-Apr-2011 gives me the +5 rep I see in the screenshot.

https://api.stackexchange.com/2.0/users/109102/reputation?fromdate=1334361600&todate=1334448000&site=stackoverflow

The screenshot graph runs from 14-Apr-2011 to 16-Mar-2011. To build something similar I think I'll have to hit a URL with the date boundaries for each day in the range. Is this right, or is there an easier way?

deleted 460 characters in body
Source Link
russau
  • 193
  • 6

I'm building something similar to the reputation graph / summary on the SO user page.

rep

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?

I'm building something similar to the reputation graph / summary on the SO user page.

rep

I'm using this API call to retrieve the reputation history: /2.0/users/109102/reputation?site=stackoverflow

..and I see this JSON response:

{
  "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.

I'm expecting the JSON to give me the same results I see in the screenshot. Have I got something wrong?

I'm building something similar to the reputation graph / summary on the SO user page.

rep

The answer explains that the /users/{ids}/reputation API method gives a sum of reputation for the period. So querying for the start/end of 14-Apr-2011 gives me the +5 rep I see in the screenshot.

https://api.stackexchange.com/2.0/users/109102/reputation?fromdate=1334361600&todate=1334448000&site=stackoverflow

The screenshot graph runs from 14-Apr-2011 to 16-Mar-2011. To build something similar I think I'll have to hit a URL with the date boundaries for each day in the range. Is this right, or is there an easier way?

added 296 characters in body
Source Link
russau
  • 193
  • 6

I'm building something pretty much exactlysimilar to the same as a reputation graph / summary on the SO user page.

rep

I'm using this API call to retrieve the reputation history: /2.0/users/109102/reputation?site=stackoverflow

..and I see this JSON response:

{
  "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.

Why do I a reputation change of 280 inI'm expecting the second item. Should that correspond withJSON to give me the 10 rep changesame results I see as the 2nd last green bar onin the graphscreenshot. Have I got something wrong?

I'm building something pretty much exactly the same as a reputation graph / summary on the SO user page.

rep

I'm using this API call to retrieve the reputation history: /2.0/users/109102/reputation?site=stackoverflow

..and I see this JSON response:

{
  "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
    },

Why do I a reputation change of 280 in the second item. Should that correspond with the 10 rep change I see as the 2nd last green bar on the graph?

I'm building something similar to the reputation graph / summary on the SO user page.

rep

I'm using this API call to retrieve the reputation history: /2.0/users/109102/reputation?site=stackoverflow

..and I see this JSON response:

{
  "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.

I'm expecting the JSON to give me the same results I see in the screenshot. Have I got something wrong?

Source Link
russau
  • 193
  • 6
Loading