#gog #games #api

gog

A crate to use the GOG web api

10 releases

0.3.4 May 15, 2019
0.3.3 Feb 25, 2019
0.2.0 Jan 24, 2019
0.1.3 Jan 16, 2019
0.1.0 Dec 30, 2018

#28 in Games

Download history 12/week @ 2019-01-27 79/week @ 2019-02-03 33/week @ 2019-02-10 23/week @ 2019-02-17 55/week @ 2019-02-24 18/week @ 2019-03-03 12/week @ 2019-03-10 22/week @ 2019-03-17 116/week @ 2019-03-24 16/week @ 2019-03-31 14/week @ 2019-04-07 4/week @ 2019-04-14 18/week @ 2019-04-21 1/week @ 2019-04-28 11/week @ 2019-05-05

107 downloads per month
Used in 1 crate

GPL-3.0 license

79KB
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

~27MB
~584K SLoC