Function dnsimple::dnsimple::new_client
source · pub fn new_client(sandbox: bool, token: String) -> Client
Expand description
Helper function to create a new client
Make sure you use this to create your client.
Examples
use dnsimple::dnsimple::{Client, new_client};
let client = new_client(true, String::from("AUTH_TOKEN"));
Arguments
sandbox
: true
if you want to run in the sandbox environment, otherwise false
token
: the bearer authentication token