Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jwilm/strava-rs
Strava API Client in Rust
https://github.com/jwilm/strava-rs
Last synced: 7 days ago
JSON representation
Strava API Client in Rust
- Host: GitHub
- URL: https://github.com/jwilm/strava-rs
- Owner: jwilm
- License: mpl-2.0
- Created: 2015-03-26T17:29:24.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2024-05-12T09:25:42.000Z (6 months ago)
- Last Synced: 2024-10-17T10:06:51.103Z (21 days ago)
- Language: Rust
- Homepage: http://www.jwilm.io/strava-rs/strava/
- Size: 631 KB
- Stars: 18
- Watchers: 2
- Forks: 8
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
strava-rs
=========Strava API client in Rust
[![Circle CI](https://circleci.com/gh/jwilm/strava-rs.svg?style=svg)](https://circleci.com/gh/jwilm/strava-rs)
## 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][].```rust
extern crate strava;use strava::athletes::Athlete;
use strava::api::AccessToken;fn main() {
// Create a token
let token = AccessToken::new("".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.[docs]: http://www.jwilm.io/strava-rs/strava/