dnsimple

Crates.iodnsimple
lib.rsdnsimple
version
sourcesrc
created_at2015-12-28 14:41:12.415165
updated_at2024-12-12 17:22:55.06631
descriptionThe DNSimple API client for Rust.
homepage
repositoryhttps://github.com/dnsimple/dnsimple-rust
max_upload_size
id3781
Cargo.toml error:TOML parse error at line 25, column 1 | 25 | autolib = false | ^^^^^^^ unknown field `autolib`, expected one of `name`, `version`, `edition`, `authors`, `description`, `readme`, `license`, `repository`, `homepage`, `documentation`, `build`, `resolver`, `links`, `default-run`, `default_dash_run`, `rust-version`, `rust_dash_version`, `rust_version`, `license-file`, `license_dash_file`, `license_file`, `licenseFile`, `license_capital_file`, `forced-target`, `forced_dash_target`, `autobins`, `autotests`, `autoexamples`, `autobenches`, `publish`, `metadata`, `keywords`, `categories`, `exclude`, `include`
size0
(dnsimple-release)

documentation

README

DNSimple Rust Client

A Rust client for the DNSimple API v2.

Build Status

Documentation

Requirements

  • Rust: 1.83+

Usage

use dnsimple::dnsimple::{Client, new_client};

let client = new_client(false, String::from("AUTH_TOKEN"));
let identity_response = client.identity().whoami().unwrap().data.unwrap();

Sandbox Environment

We highly recommend testing against our sandbox environment before using our production environment. This will allow you to avoid real purchases, live charges on your credit card, and reduce the chance of your running up against rate limits.

The client supports both the production and sandbox environment. To switch to sandbox pass the sandbox API host setting the sandbox option to true when you construct the client:

use dnsimple::dnsimple::{Client, new_client};

let client = new_client(true, String::from("AUTH_TOKEN"));
let identity_response = client.identity().whoami().unwrap().data.unwrap();

You will need to ensure that you are using an access token created in the sandbox environment. Production tokens will not work in the sandbox environment.

## Contributing

Contibutions are welcomed. Please open an issue to discuss the changes before opening a PR. For more details on how to do development please refer to CONTRIBUTING.md

License

Copyright (c) 2015-2024 DNSimple Corporation. This is Free Software distributed under the MIT license.

Commit count: 120

cargo fmt