7 releases (stable)

1.1.2 Sep 17, 2024
1.1.0 Jul 3, 2024
1.0.3 Mar 6, 2023
1.0.1 Feb 27, 2023
0.1.0 Feb 26, 2023

#107 in HTTP client

Download history 148/week @ 2024-09-11 137/week @ 2024-09-18 31/week @ 2024-09-25 18/week @ 2024-10-02 2/week @ 2024-10-09

332 downloads per month
Used in render-cli

MIT license

87KB
2K SLoC

Stars Build Status Downloads Crates.io

Render client, generated from the OpenAPI spec.

Usage

use render_api::RenderClient;
use render_api::model::*;
#[tokio::main]
async fn main() {
    let client = RenderClient::from_env();
    let response = client
        .list_authorized_users_and_teams()
        .cursor("your cursor")
        .email("your email")
        .limit("your limit")
        .name("your name")
        .await
        .unwrap();
    println!("{:#?}", response);
}

This example loads configuration from environment variables, specifically:

  • RENDER_API_KEY_AUTH

Installation

Add this to your Cargo.toml:

[dependencies]
render_api = "0.1.0"

Documentation

You can see working examples of every API call in the examples/ directory.

Contributing

Contributions are welcome!

Library created with Libninja.

Dependencies

~7–19MB
~276K SLoC