loldevs / riotapi

A general purpose api for all things riot
loldevs.github.io
Apache License 2.0
48 stars 14 forks source link

Riot API proxy support #45

Open rmschots opened 8 years ago

rmschots commented 8 years ago

I'd like to see proxy support for usage with the Riot API. Might add this myself when I need this in the future.

strangeglyph commented 8 years ago

Do I understand correctly: You want to be able to pass any URL to the rest API?

rmschots commented 8 years ago

No, rather accessing the api through a proxy. To prevent riot detecting usage of a lot of api keys from the same ip. I don't know if its possible to configure the javax.ws.rs.client.Client without libraries. Here is an example doing it with the help of jersey: http://stackoverflow.com/questions/29846264/jersey-2-0-get-post-call-via-proxy/29863401#29863401