Crates.io | gandi-v5-livedns-api |
lib.rs | gandi-v5-livedns-api |
version | 0.1.0 |
source | src |
created_at | 2024-04-02 13:12:38.289684 |
updated_at | 2024-04-02 13:12:38.289684 |
description | Gandi LiveDNS Api |
homepage | |
repository | https://github.com/mickybart/gandi-v5-rs |
max_upload_size | |
id | 1193517 |
size | 24,967 |
Provides an abstration on top of Gandi LiveDNS RESTful Api.
A personal access token is required
This library is asynchronous.
The Api is the main entrypoint to communicate with Gandi LiveDNS Api.
use std:env;
use gandi_v5_livedns_api::{Api, Endpoint};
#[tokio::main]
async fn main() -> Result<(), Box<dyn Error>> {
let personal_access_token = env::var("GANDI_V5_PAT")?;
let api = Api::build(Endpoint::Prod, &personal_access_token)?;
}