ggst-api-rs
ggst-api-rs copied to clipboard
Fetching console replays
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?
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.
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
I've modified the API to support this on my branch, not sure if that's the design you'd want though.
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).