GitXplorerGitXplorer
j

strava-rs

public
18 stars
8 forks
1 issues

Commits

List of commits on branch master.
Unverified
e6a51e9c4a798591db91a74e58b7fd29f99f5795

Add author to upload-docs commit message for CI

jjwilm committed 10 years ago
Unverified
e1cc7c500cc27b5c4338dba6b1567da46af19ae4

Test with circle.ci

jjwilm committed 10 years ago
Unverified
cbffb795273dc9eeefab43c6e974c9be109ccf21

Add helpers for building/uploading docs

jjwilm committed 10 years ago
Unverified
da0f2602bae3bd7045687feda4efef4d996afde2

Add documentation link to Cargo.toml

jjwilm committed 10 years ago
Unverified
6e2ad1d681fedaddbf2df3652e6dc6e34773aa03

Bump version for a release

jjwilm committed 10 years ago
Unverified
c3bb851202db236c8a79d69b7cd086162539236c

Fix doc example and README

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.