https://github.com/47ng/strava-auth-cli
Login to the Strava API from the terminal
https://github.com/47ng/strava-auth-cli
strava-cli
Last synced: 24 days ago
JSON representation
Login to the Strava API from the terminal
- Host: GitHub
- URL: https://github.com/47ng/strava-auth-cli
- Owner: 47ng
- License: mit
- Created: 2019-01-24T21:16:44.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2020-10-21T12:27:24.000Z (over 5 years ago)
- Last Synced: 2025-01-14T04:09:44.777Z (over 1 year ago)
- Topics: strava-cli
- Language: Rust
- Homepage: https://francoisbest.com/posts/2019/strava-auth-cli-in-rust
- Size: 64.5 KB
- Stars: 2
- Watchers: 4
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
- License: LICENSE
Awesome Lists containing this project
README
# `strava-auth-cli`

Authenticate with the Strava API from the command line:
```shell
$ strava-auth-cli --id 123456 --secret 0123456789abcdef
```
Select the scopes to allow for your token in your browser:

You get back a pair of tokens (Access and Refresh), straight from the terminal:
```
$ strava-auth-cli --id 123456 --secret 0123456789abcdef
Login {
access_token: "2eb1da57d56f45c6a3db9c44c5594a59",
refresh_token: "af4561aa7f754bd788223ec49f3c9f26"
}
Scopes [
"read",
"activity:write",
"activity:read_all",
"profile:write",
"profile:read_all",
"read_all"
]
```
It's very useful when you're at the prototyping phase of an API client.
---
The building of this project has been the subject of a
[blog article](https://francoisbest.com/posts/2019/strava-auth-cli-in-rust)
on my website.