Crates.io | ittv_sdk |
lib.rs | ittv_sdk |
version | 0.1.4 |
source | src |
created_at | 2024-03-17 15:22:54.954433 |
updated_at | 2024-03-17 17:04:44.071742 |
description | A library for interacting with the ITTV API |
homepage | |
repository | |
max_upload_size | |
id | 1176582 |
size | 11,494 |
A Rust SDK for interacting with the ITTV API.
Add the following to your Cargo.toml
file:
[dependencies]
ittv_sdk = "0.1"
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);
}