Skip to content
This repository has been archived by the owner on Oct 31, 2020. It is now read-only.
/ bungie-rs Public archive

A Rust crate for interacting with the Bungie.net API

License

Notifications You must be signed in to change notification settings

maarten-vos/bungie-rs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

bungie-rs Build Status Crates.io MIT licensed

A Rust crate for interacting with the Bungie.net API

While the project is called "bungie-rs", it mostly focusses on the Destiny 2 part of the API.

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);
    Ok(())
}

About

A Rust crate for interacting with the Bungie.net API

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages