13 releases (1 stable)

1.0.0 Mar 12, 2024
0.7.0 Jan 16, 2024
0.6.0 Dec 13, 2023
0.5.0 Aug 10, 2023
0.0.1 Dec 28, 2015

#194 in Web programming

Download history 3/week @ 2024-02-13 20/week @ 2024-02-20 13/week @ 2024-02-27 165/week @ 2024-03-12 6/week @ 2024-03-19 16/week @ 2024-03-26 68/week @ 2024-04-02

373 downloads per month

MIT license

150KB
2.5K SLoC

DNSimple Rust Client

A Rust client for the DNSimple API v2.

Build Status

Documentation

Requirements

  • TBD

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-2022 DNSimple Corporation. This is Free Software distributed under the MIT license.

Dependencies

~2.7–4MB
~105K SLoC