#twilio #open-api #spec #generated #client #model #page

twilio-rs

Twilio client, generated from the OpenAPI spec

2 releases

0.1.1 Mar 30, 2023
0.1.0 Mar 30, 2023

#6 in #twilio

22 downloads per month

MIT license

640KB
15K SLoC

Stars Build Status Downloads Crates.io

Twilio client, generated from the OpenAPI spec.

Usage

use twilio::TwilioClient;
use twilio::model::*;
#[tokio::main]
async fn main() {
    let client = TwilioClient::from_env();
    let response = client
        .list_account()
        .friendly_name("your friendly name")
        .page(1)
        .page_size(1)
        .page_token("your page token")
        .status("your status")
        .await
        .unwrap();
    println!("{:#?}", response);
}

Installation

Add this to your Cargo.toml:

[dependencies]
twilio = "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

~10–24MB
~416K SLoC