hop 0.1.12

Rust client library for the Api
Documentation

hop

This crate provides a Rust interface to the Hop API.

Installation

Add the following to your Cargo.toml file:

[dependencies]
hop = "0.1.0"

Usage

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);