netcup-client 0.1.0

Wrapper client for the netcup DNS API
Documentation
use anyhow::Result;
use netcup_client::prelude::*;

#[tokio::main]
async fn main() -> Result<()> {
    let customer_no = 4711;
    let api_key = "api_key";
    let api_password = "api_password";

    // login
    let client = NetcupClient::new(api_key, customer_no);
    let client = client.login(api_password).await?;

    // get dns zone
    let result = client.get_dns_zone("example.tld").await?;
    println!("{:?}", result);

    // logout
    client.logout().await?;
    Ok(())
}