porkbun-api 1.0.4

an async implementation of porkbun's domain management api.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#[tokio::main]
async fn main() -> anyhow::Result<()> {
    let file = std::fs::File::open("secrets/api_key.json")?;
    let api_key = serde_json::from_reader(file)?;
    let client = porkbun_api::Client::new(api_key);
    println!("TLD: registration / renewal / transfer\n-------");
    for (tld, pricing) in client.icann_domain_pricing().await? {
        println!(
            "{tld}: {} / {} / {}",
            pricing.registration, pricing.renewal, pricing.transfer
        );
    }
    Ok(())
}