# Rustiny
A wrapper for the Destiny 2 / Bungie.net API written in rust.
Check out the [JavaDestinyAPI](https://github.com/dec4234/JavaDestinyAPI), if you need a Java implementation.
[](https://discord.gg/dvZmP92d4h)
## Usage
(Rustiny usually uses the most recent version of Rust)
In addition to these examples, check out src/lib.rs for the tests that I use.
____
**Getting a User With A Name And Discriminator**
```rust
let client = ApiInterface::new("YOUR API KEY HERE", true).await;
println!("{}", BungieUser::get_user_by_name_and_discrim_with_platform(client, String::from("dec4234#9904"), DestinyPlatform::All)
.await
.unwrap()
.primary.global_display_name);
```
## Development Outlook
1. ### Stats
1. Users
2. Clans
3. Characters **<-- Here**
4. Activity History / PGCRs
5. Manifest
2. ### OAuth
1. Implement OAuth API
2. Support OAuth Flow
3. Users
4. Clans
5. Social
## Version 0.1.11
- Removed get_api() access
- Added mod.rs to each folder
- Added DestinyCharacter
- Added Manifest
- Added small tests for characters and manifest
- Added get_pgcr_raw() to PGCRScraper
- Fix documentation for get_user_by_id()
- Add new macro to place struct inside of auto-generated structs for PGCR values