xynxynxyn / ggst-api-rs

A library for interfacing with the REST API of Guilty Gear Strive
34 stars 9 forks source link

API Doc? #10

Open sequethin opened 8 months ago

sequethin commented 8 months ago

Hi! This is awesome work, I'm just wondering if you could share your api doc? I'm trying to write myself something that pulls my stats down for me to save locally, as a JS/TS project.

xynxynxyn commented 8 months ago

Hey, I haven't updated this library in a long time and I'm pretty sure the API has changed in such a way that you need authentication via steam to access the stats. You might have more luck looking at https://github.com/UnknownMemory/ggst-api and https://github.com/halvnykterist/rating-update/blob/master/src/requests.rs to see how the messages should be formatted with the login information.

spcutrell commented 7 months ago

That's great information once the endpoints have been scrapped. Do you have any advice on how to scrape endpoints? As an exercise, I would like to recreate something like this for a different game e.g. Granblue Versus or UNI2 (I really don't care which game to be honest). I get a proxy up (mitmproxy), but I immediately run into cert error issues, and I don't even kind of know where to begin looking to solve them.

xynxynxyn commented 7 months ago

I didn't scrape the API myself, I just implemented someone else's work in Rust. However, when I did end up debugging stuff I used totsugeki as a proxy to display packet contents to see what's going on. I don't know if this still works or if totsugeki has been updated for the latest game patches, but it might be worth checking out.