bungie

Crates.iobungie
lib.rsbungie
version0.2.0
sourcesrc
created_at2018-06-30 11:33:50.706789
updated_at2018-07-13 21:26:04.559665
descriptionA Rust crate for interacting with the Bungie.net API
homepage
repositoryhttps://github.com/inferiormartin/bungie-rs
max_upload_size
id72300
size36,665
Maarten Vos (maarten-vos)

documentation

README

bungie-rs Build Status

A Rust crate for interacting with the Bungie.net API

NOTE: This crate is in alpha and highly unstable!

Features

A direct 1:1 link to the Bungie.net API

Usage

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(())
}
Commit count: 31

cargo fmt