| Crates.io | hop |
| lib.rs | hop |
| version | 0.1.12 |
| created_at | 2020-05-15 00:36:25.668254+00 |
| updated_at | 2023-12-18 01:14:21.259485+00 |
| description | Rust client library for the Api |
| homepage | https://hop.io |
| repository | https://github.com/hopinc/rs#readme |
| max_upload_size | |
| id | 241712 |
| size | 161,980 |
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);