ggst-api-rs icon indicating copy to clipboard operation
ggst-api-rs copied to clipboard

Fetching console replays

Open ravicious opened this issue 3 years ago • 4 comments

I love the idea behind ratingupdate.info, but rn I play the game on PlayStation.

Do you know what would it take to fetch console replays from the API? Of course actually setting up the infrastructure for ratingupdate.info to incorporate it is another matter. But if fetching console replays is possible, I’d be willing to look into it and maybe even spinning up a console version of the website.

I suppose there’s maybe a discord server where people are discussing this?

ravicious avatar Feb 04 '22 22:02 ravicious

One would have to intercept the requests from the console to the Strive API. I don't have a console and also wouldn't know how to do that properly. On PC you can use either Wireshark or a Totsugeki fork to print out the request bodies. Also no Discord server or any discussions for this. This crate is just a cleaner implementation of https://github.com/notquitefactual/GGAnalyser/blob/backend/index.js. Maybe notquitefactual would know more about this topic.

xynxynxyn avatar Feb 04 '22 23:02 xynxynxyn

Poking around at the API some more I think I have figured out that you query for Playstation data by changing this field from a 3 to a 1 https://github.com/xynxynxyn/ggst-api-rs/blob/7c995bad47c6c8b4c577da37051316529b0c338f/src/requests.rs#L224

Marwes avatar Feb 14 '22 18:02 Marwes

I've modified the API to support this on my branch, not sure if that's the design you'd want though.

halvnykterist avatar Apr 11 '22 16:04 halvnykterist

I've modified the API to support this on my branch, not sure if that's the design you'd want though.

I'd put it as a field on the QueryParameters builder (I'd probably also simplify QueryParameters to not need those type parameters as it seems more complicated than it is worth, setting the same field again might be intentional even).

Marwes avatar Apr 12 '22 21:04 Marwes