ninya-io / ninya.io

Find StackOverflow users near you by tags and reputation
MIT License
60 stars 13 forks source link

Migrate to StackExchange API 2.x #28

Closed cburgdorf closed 10 years ago

cburgdorf commented 10 years ago

The currently used API version 1.0 will be shut down on 12th of May. Additionally the new API makes it super easy to fetch from other StackExchange sites which nicely aligns with our project goals.

There shouldn't be big changes needed to be made on our end.

(This is the documentation for the new API)[http://api.stackexchange.com/docs]

This is the the new endpoint for the users:

http://api.stackexchange.com/2.2/users?order=desc&sort=reputation&site=stackoverflow

This is the endpoint for the old API:

http://api.stackoverflow.com/1.1/users

page and pagesize didn't change and the user object also doesn't seem to have changed for what we actually use (reputation, location). Just the property on the wrapper is now called items instead of users. Same goes for the top-user-tags API.

The most visible change is that one needs to set the site parameter (e.g. site=stackoverflow)

cburgdorf commented 10 years ago

This should go hand in hand with https://github.com/cburgdorf/StackWho/issues/29

cburgdorf commented 10 years ago

This just landed.