Skip to content
This repository has been archived by the owner on May 4, 2024. It is now read-only.

Client library for the deSEC Free Secure DNS service focussing on retrieving and creating DNS Records

License

Notifications You must be signed in to change notification settings

andreas-bruckmeier/desec-client

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

deSEC Client

Note

This repository will no longer be maintained. See desec_api.

Client library for the deSEC Free Secure DNS service focussing on retrieving and creating DNS Records

How to use in your project

Add dependency to your Cargo.toml

[package]
name = "my-project"
version = "0.1.0"
edition = "2021"

[dependencies]
desec-client = { git = "https://github.com/autopwn/desec-client", tag = "v0.2.0" }
jsonformat = "2.0.0"

Use it in your code

use desec_client::DeSecClient;

fn main() {
    let token = std::env::var("DESEC_API_TOKEN").unwrap();
    let client = DeSecClient::new(token);
    let account_info = &client.get_account_info().unwrap();
    println!("{:#?}", account_info);
}

Output

AccountInformation {
    created: "2020-08-25T11:27:08.362000Z",
    email: "[email protected]",
    id: "a5352169-c7bd-4d48-8818-bc90e7d7a1a8",
    limit_domains: 15,
    outreach_preference: true,
}

License

See LICENSE for details.

About

Client library for the deSEC Free Secure DNS service focussing on retrieving and creating DNS Records

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages