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

PvP Leaderboards missing #177

Open
oliv-tree opened this issue Jan 12, 2024 · 3 comments
Open

PvP Leaderboards missing #177

oliv-tree opened this issue Jan 12, 2024 · 3 comments

Comments

@oliv-tree
Copy link

oliv-tree commented Jan 12, 2024

Hey,

Both /data/wow/pvp-season/{pvpSeasonId}/pvp-leaderboard/index and /data/wow/pvp-season/{pvpSeasonId}/pvp-leaderboard/{pvpBracket} seem to be missing

@benweier
Copy link
Owner

Hey @oliv-tree, the PVP Season API is currently available on the retail client but not on the classic client. Checking the documentation it does look like it is supported by the classic game data APIs now so I may need to add this to the lib

@oliv-tree
Copy link
Author

Hey @oliv-tree, the PVP Season API is currently available on the retail client but not on the classic client. Checking the documentation it does look like it is supported by the classic game data APIs now so I may need to add this to the lib

Again this was my bad, however I think the implementation is quite confusing. I.e., how you would reach the code for each of these is not very clear from the docs/types.

let leaderboardIndex = await wowClient.pvpSeason({
  id: 36,
  resource: "leaderboard",
})
let leaderboard = await wowClient.pvpSeason({
  id: 36,
  bracket: "shuffle-demonhunter-havoc",
  resource: "leaderboard",
})
let season = await wowClient.pvpSeason({
  id: 36,
})
let seasonRewards = await wowClient.pvpSeason({
  id: 36,
  resource: "reward",
})

@benweier
Copy link
Owner

I agree it's not as clear as it could be and there's an opportunity here to improve the documentation

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

No branches or pull requests

2 participants