Crates.io | strava |
lib.rs | strava |
version | 0.2.0 |
source | src |
created_at | 2015-04-24 04:12:57.9776 |
updated_at | 2018-01-14 16:53:45.053429 |
description | Strava API v3 Client |
homepage | |
repository | https://github.com/jwilm/strava-rs |
max_upload_size | |
id | 1929 |
size | 47,202 |
Strava API client in Rust
The library currently exposes functions for accessing athletes, segments, and segment efforts. Support for activities is next on the list. For an exhaustive list of capabilities, please reference the docs.
extern crate strava;
use strava::athletes::Athlete;
use strava::api::AccessToken;
fn main() {
// Create a token
let token = AccessToken::new("<my token>".to_string());
// Get the athlete associated with the given token
let athlete = Athlete::get_current(&token).unwrap();
// All of the strava types implement Debug and can be printed like so:
println!("{:?}", athlete);
}
I am not in any way affiliated with Strava, Inc. I merely wish to use the Strava API from Rust.