heroku-rs
This project is currently under development
Intro
This is a rust wrapper for the Heroku v3 API.
This is a work in progress mostly as a way to learn Rust.
Useful links
Setting up the wrapper
-
clone this repo
-
Login to heroku
heroku login -
You need to generate a token to access the api, do so with the following commands:
heroku auth:token// Gen development tokenheroku authorizations:create// Gen OAuth token -
Then use the generated heroku token to create a heroku client
let client = Heroku::new("API_KEY_HERE").unwrap(); let me = client.get().apps().execute::<Value>(); match me { Ok((headers, status, json)) => { println!("{:#?}", headers); println!("{}", status); if let Some(json) = json { println!("{}", json); } } Err(e) => println!("Err {}", e), }
License
Licensed under either of
- Apache License, Version 2.0, (LICENSE-APACHE or http://www.apache.org/licenses/LICENSE-2.0)
- MIT license (LICENSE-MIT or http://opensource.org/licenses/MIT)
at your option.
Licensing
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.