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

New endpoint for metadata of all matches? #15

Open
kylejrp opened this issue Jan 24, 2019 · 4 comments
Open

New endpoint for metadata of all matches? #15

kylejrp opened this issue Jan 24, 2019 · 4 comments

Comments

@kylejrp
Copy link

kylejrp commented Jan 24, 2019

I found this endpoint - I didn't see it listed in b04.ts:
${BO4_ENDPOINT}/platform/${platform}/gamer/${username}/matches/zombies/start/0/end/0
It seems to return the metadata for all matches, instead of just the details of 20 within a time range you specify.

🤔 Maybe useful?

@jakejrichards
Copy link
Owner

Yeah I really should implement a metadata instead of only including the detailed endpoints since this is possible. At first I didn't see a reason to use the metadata endpoint, but since this returns all match metadata that seems convincing enough to me 😄I'll take a look at this today

@kylejrp
Copy link
Author

kylejrp commented Jan 24, 2019

Awesome! Thanks, man.

Do you know if there's an endpoint for viewing the specific match's details? Eg, take the ID from this endpoint and view the details for just that one match.

@jakejrichards
Copy link
Owner

jakejrichards commented Jan 24, 2019

Not that I am aware of, however you could probably treat the match's timestamp as its id, its probably unique enough to hit the endpoint like this:

.../platform/{}/gamer/{}/matches/{}/start/{timestamp}/end/{timestamp + 1}/details

^ I think this is what you're looking for.

@jakejrichards
Copy link
Owner

It would definitely be a cool feature to add something like getMatchByTimestamp(timestamp)

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