hop
This crate provides a Rust interface to the Hop API.
Installation
Add the following to your Cargo.toml
file:
[]
= "0.1.0"
Usage
use ;
let hop = new_with_options;
let me = hop.users.me.await?;
println!;
This crate provides a Rust interface to the Hop API.
Add the following to your Cargo.toml
file:
[dependencies]
hop = "0.1.0"
use hop::{Hop, HopOptions};
let hop = Hop::new_with_options(HopOptions {
token: Some("your-token".to_string()),
..Default::default()
});
let me = hop.users.me().await?;
println!("Hello, {}!", me.user.name);