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

API Doc?

Open sequethin opened this issue 1 year ago • 3 comments

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.

sequethin avatar Dec 22 '23 16:12 sequethin

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.

xynxynxyn avatar Dec 22 '23 17:12 xynxynxyn

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.

spcutrell avatar Jan 16 '24 01:01 spcutrell

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.

xynxynxyn avatar Jan 21 '24 01:01 xynxynxyn