use origin_sdk::{
protocol::game::GetAllGameInfo,
sdk::{ClientConfig, OriginSdk, ORIGIN_SDK_PORT},
};
#[tokio::main]
async fn main() -> Result<(), Box<dyn std::error::Error>> {
let config = ClientConfig {
content_id: "Origin.OFR.50.0004455".to_string(),
language: "".to_string(),
multiplayer_id: "".to_string(),
title: "".to_string(),
version_override: None,
};
let (client, _) = OriginSdk::connect(config, ORIGIN_SDK_PORT).await?;
let game_info = client.request(GetAllGameInfo {}).await?;
println!("{:#?}", game_info);
Ok(())
}