Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

getMatchHistory return 403: forbidden #35

Closed
Leekao opened this issue Dec 25, 2015 · 3 comments · Fixed by #36
Closed

getMatchHistory return 403: forbidden #35

Leekao opened this issue Dec 25, 2015 · 3 comments · Fixed by #36

Comments

@Leekao
Copy link

Leekao commented Dec 25, 2015

other methods work fine, just getMatchHistory returns 403:forbidden, here is the code:

LolApi.getMatchHistory 40200522, null, (e, matchlist) ->
if e?
console.log e
return

@mrkoala30
Copy link

Same problem!!
Error getting match history: 403 Forbidden undefined

help pls

@ferderber
Copy link
Contributor

The match history endpoint was deprecated by Riot 3 months ago so that would explain the 403.
Instead of match history, matchlist and match are used for retrieving similar data.

Matchlist: https://developer.riotgames.com/api/methods#!/1053/3617
Match: https://developer.riotgames.com/api/methods#!/1058/3656

Heres the forum thread discussing the deprecation: https://developer.riotgames.com/api/methods#!/1053/3617

This library hasn't been updated yet so currently it doesn't support either of the new methods.
If you're looking for an alternative, I would suggest 'lolapi': https://github.com/emmorts/lolapi

@claudiowilson
Copy link
Owner

Unfortunately I haven't been doing much with the LoL API, and haven't been maintaining it as well as I should have. I'll try and update this as soon as possible

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants