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

#1481 in Web programming

Download history 19/week @ 2023-12-15 43/week @ 2023-12-22 19/week @ 2023-12-29 9/week @ 2024-01-05 11/week @ 2024-01-12 19/week @ 2024-01-19 8/week @ 2024-01-26 77/week @ 2024-02-02 91/week @ 2024-02-09 79/week @ 2024-02-16 34/week @ 2024-02-23 89/week @ 2024-03-01 106/week @ 2024-03-08 74/week @ 2024-03-15 61/week @ 2024-03-22 105/week @ 2024-03-29

368 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

~24–40MB
~677K SLoC