GitXplorerGitXplorer
j

strava-rs

public
18 stars
8 forks
1 issues

Commits

List of commits on branch master.
Unverified
85fbabfb321f157426d449852d3eb1cf800cbf38

Moved tests to the proper place, implemented activities, fixed some missing fields in activities

hhunterwerlla committed 8 years ago
Unverified
c0f931b7572c4e9573b8f07942cc3cd0d7448259

added club support

hhunterwerlla committed 8 years ago
Unverified
67f0c460d995819f5135a895d7a9a7f9351815e7

gear works, added a test

hhunterwerlla committed 8 years ago
Unverified
ef90574c54a709cb006c42808e11430dbbb7875a

updated to latest dependencies so it works on modern rust, started implementing the missing features, fixed connection to strava with hyper_native_tls

hhunterwerlla committed 8 years ago
Unverified
83006c2080d43e58bcb623449bf99ad18763f0c0

Add Circle CI badge to README

jjwilm committed 10 years ago
Unverified
cf7b23446b1c7f5dede6490e02aa48db21da05c1

Circle doesn't like --author - update git config

jjwilm committed 10 years ago

README

The README file for this repository.

strava-rs

Strava API client in Rust

Circle CI

About

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

Disclaimer

I am not in any way affiliated with Strava, Inc. I merely wish to use the Strava API from Rust.