miasmos / op.gg-api

Serves op.gg web pages as json.
MIT License
81 stars 21 forks source link

Feature request - Force op.gg to update the summoner #4

Closed freakpants closed 9 years ago

freakpants commented 9 years ago

Is there a way to force op.gg to update the summoner before requesting the data?

im building a match ticker that tracks tournament matches (http://www.gamerbase.ch/poros-matchticker/) and sometimes (mostly unless the players do it) i have to manually refresh the summoners for the match ticker to pick up the matches.

miasmos commented 9 years ago

It is possible, but it requires 3 calls. One to /summoner to get the summoner ID, a second to /refresh (which I can implement), and a third to get the refreshed data. This could be avoided if you cached summoner ID's, though.

freakpants commented 9 years ago

I already save summonerIds locally, as it is more reliable than summoner names which can be chagned. Would love to see an implementation of a refresh call. :)

freakpants commented 9 years ago

I see you already implemented it! That was fast! I'm going to have to donate some money to you at some point :D Thanks!