This project is currently under development
This is a rust wrapper for the Heroku v3 API.
This is a work in progress mostly as a way to learn Rust.
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 token
heroku 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),
}
Licensed under either of
at your option.
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.