12 releases
0.5.0 | Feb 23, 2023 |
---|---|
0.4.0 | Sep 10, 2020 |
0.3.4 | May 15, 2019 |
0.3.3 | Feb 25, 2019 |
0.1.0 | Dec 30, 2018 |
#12 in #games
33 downloads per month
Used in wyvern
74KB
2K
SLoC
gog-rs
gog-rs is a rust library for talking to GOG's unofficial REST API. Many thanks to Yepoleb for the hard work documenting how GOG's API works. This library is written mostly to support wyvern, but if you want any other endpoints/methods to be implemented, let me know and I'll be happy to add them! This is a mirror for the sr.ht repository
Getting started
Example
// Gets a list of the ids of all games the user owns
let token = gog::token::Token::from_login_code(/*This code is from the GOG OAuth login page*/).unwrap();
let gog = gog::Gog::new(token);
println!("{:?}", gog.get_games().unwrap())
// [6, 1146738698, 1207658679, 1207658691, 1207658695...]
Dependencies
~20–34MB
~570K SLoC