pixelast
This library is Pixela client for Rust.
Usage
Add this to your Cargo.toml
[dependencies]
pixelast = "0.1.0"
Example
use ;
User
// Create new user.
let res = create_new_user;
// Update user token.
let client = new;
client.update_user_token.unwrap;
// Delete user.
let client = new;
client.update_user_token.unwrap;
Graph
// Create graph.
let client = new;
client.create_graph.unwrap;
// Update graph definition.
let client = new;
client.update_graph.unwrap;
// Delete graph.
let client = new;
client.delete_graph.unwrap;
// Get all graphs.
let client = new;
let graphs = client.get_graphs.unwrap;
println!;
// Get graph SVG.
let client = new;
let svg = client.get_graph_svg.unwrap;
// let svg = client.get_graph_svg("graphid", None).unwrap();
println!;
// Get graph SVG.
let client = new;
let svg = client.get_graph_svg.unwrap;
// let svg = client.get_graph_svg("graphid", None).unwrap();
println!;
Pixel
// Record pixel.
let client = new;
client.record_pixel.unwrap;
// Update pixel.
let client = new;
client.update_pixel.unwrap;
// Delete pixel.
let client = new;
client.delete_pixel.unwrap;
// Get pixel quantity.
let client = new;
let pixel = client.get_pixel.unwrap;
println!;
// Increment pixel.
let client = new;
client.increment.unwrap;
// Decrement pixel.
let client = new;
client.decrement.unwrap;