heroku_rs 0.1.0

Rust bindings for the Heroku API
Documentation

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

Heroku quickstart

Heroku API reference

Generating a heroku API key

Setting up the wrapper

  • clone this repo

  • Install heroku cli

  • 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),
    }
    

License

Licensed under either of

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.