gog

Crates.iogog
lib.rsgog
version0.5.0
sourcesrc
created_at2018-12-30 01:33:31.541033
updated_at2023-02-23 18:03:26.628002
descriptionA crate to use the GOG web api
homepage
repositoryhttps://git.sr.ht/~nicohman/gogapi-rs
max_upload_size
id104496
size112,896
Nico Hickman (nicohman)

documentation

README

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...]
Commit count: 0

cargo fmt