Crate analyticord []

This crate allows you to interact with the Analyticord backend.

Example

use analyticord::client::Client;
use analyticord::events::Messages;

let client = Client::default("YOUR_TOKEN".into());
if client.is_err() {
    print!("{}", "borked token, try again.");
    std::process::exit(0);
}
let res = client.unwrap().send_event(Messages { amount: 10 });
match res {
    Ok(data)    => print!("Successfully submitted. ID: {}", data.id),
    Err(error)  => print!("Error: {:?}", error),
}

Modules

client

Module containing the Client struct.

data

Module containing the custom data struct.

error

Module containing the custom error struct.

events

Module containing all the weird events.