Portfolio with Stack Exchange Basic Info

Currently, I want to create a web page that displays my achievements on Stack Exchange.

Just basic information ... Badges and reputation earned.

I am new to Javascript. I took a quick look at the Javascript SDK but couldn't seem to get past the intro. Apparently, in order to access the information, I need to have an access token to load urls '/ me'.

Here's the api link: https://api.stackexchange.com/docs/js-lib

Am I approaching this correctly? All I need to download is reputation and deserved awards. And reload these values ​​every time the page is refreshed.

+3


source to share


1 answer


Thanks to LJ_1102 the problem is solved ...

I need a url: https://api.stackexchange.com/users/2086142?site=stackoverflow

What returns



{"items": [{"badge_counts":{"bronze":20,"silver":4,"gold":1}, "account_id":2384980, "is_employee":false, "last_modified_date":1418916218, "last_access_date":1418916810, "reputation_change_year":314, "reputation_change_quarter":189, "reputation_change_month":17, "reputation_change_week":12, "reputation_change_day":12, "reputation":658, "creation_date":1361259689, "user_type":"registered", "user_id":2086142, "age":23, "accept_rate":53, "location":"Petaluma, CA", "website_url":"", "link":"http://stackoverflow.com/users/2086142/jsetting32", "display_name":"jsetting32", "profile_image":"http://i.stack.imgur.com/dPs0T.jpg?s=128&g=1"}], "has_more":false,"quota_max":300,"quota_remaining":279}

If the keys badge_counts

and reputation

are what I need!

0


source







All Articles