#api-client #sdk #interact #ittv

ittv_sdk

A library for interacting with the ITTV API

5 releases

0.1.4 Mar 17, 2024
0.1.3 Mar 17, 2024
0.1.2 Mar 17, 2024
0.1.1 Mar 17, 2024
0.1.0 Mar 17, 2024

#2009 in Web programming

MIT license

12KB
188 lines

ITTV SDK

A Rust SDK for interacting with the ITTV API.

Installation

Add the following to your Cargo.toml file:

[dependencies]
ittv_sdk = "0.1"

Usage

use ittv_sdk::{Client, NewCustomer};

#[tokio::main]
async fn main() {
    let client = Client::new("your_api_key");
    
    let customer = NewCustomer {
        name: "John Doe",
        // ...
    };

    let response = client
        .create_customer(customer)
        .await
        .unwrap();

    println!("{:?}", response);
}

lib.rs:

ITTV SDK

A Rust SDK for the ITTV API.

Dependencies

~4–19MB
~222K SLoC