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

#1575 in Web programming

Download history 20/week @ 2024-06-30 55/week @ 2024-07-07 4/week @ 2024-07-14 43/week @ 2024-07-21 53/week @ 2024-07-28 32/week @ 2024-08-04 25/week @ 2024-08-11 5/week @ 2024-08-18 15/week @ 2024-08-25 7/week @ 2024-09-01 3/week @ 2024-09-08 4/week @ 2024-09-15 41/week @ 2024-09-22 25/week @ 2024-09-29 10/week @ 2024-10-06 17/week @ 2024-10-13

93 downloads per month
Used in wyvern

GPL-3.0 license

74KB
2K SLoC

gog-rs builds.sr.ht status

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

~18–31MB
~548K SLoC