phant-rust Build Status

A library in rust for manipulating data on a Phant server. Check out the generated documentation for detailed information. A more thorough example is provided at examples/main.rs.

Depends on:

To use with cargo:

In your project's Cargo.toml, include: ```toml [dependencies]

url = "~0.0.2" ```

To use the library, include the crate with extern crate phant; and then use it:

```rust let mut phant = phant::Phant::new("data.sparkfun.com", "yourpublickey", "yourprivatekey");

// COLUMN NAME DATA VALUE phant.add("computername", "my-computer"); phant.add("externalip", "123.321.111.222"); phant.add("internal_ip", "192.168.1.104");

phant.push().ok().expect("Pushing to server did not succeed"); ```