#api #read #docs #go #reason

analyticord

Simple wrapper around the Analyticord API

4 releases

Uses old Rust 2015

0.1.2 Aug 20, 2017
0.1.1 Aug 20, 2017
0.1.0 Aug 17, 2017
0.0.2 Aug 20, 2017

#16 in #reason

22 downloads per month

WTFPL license

13KB
222 lines

Analyticord.rs

Go, read the docs. They are there for a reason.


lib.rs:

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),
}

Dependencies

~12–21MB
~320K SLoC