Crates.io | bungie |
lib.rs | bungie |
version | 0.2.0 |
source | src |
created_at | 2018-06-30 11:33:50.706789 |
updated_at | 2018-07-13 21:26:04.559665 |
description | A Rust crate for interacting with the Bungie.net API |
homepage | |
repository | https://github.com/inferiormartin/bungie-rs |
max_upload_size | |
id | 72300 |
size | 36,665 |
A Rust crate for interacting with the Bungie.net API
NOTE: This crate is in alpha and highly unstable!
A direct 1:1 link to the Bungie.net API
extern crate bungie;
extern crate dotenv;
extern crate failure;
use bungie::BungieClient;
use std::env;
use dotenv::dotenv;
fn main() -> Result<(), failure::Error> {
dotenv()?;
let bungie = BungieClient::new(env::var("API_KEY")?);
let manifest = bungie.destiny2().get_destiny_manifest()?;
println!("{}", manifest.response.version);
Ok(())
}