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);
}
Check the documentation for more examples.