https://github.com/jchenry/peloton
A client library for the undocumented Peloton API
https://github.com/jchenry/peloton
golang library peloton
Last synced: 11 months ago
JSON representation
A client library for the undocumented Peloton API
- Host: GitHub
- URL: https://github.com/jchenry/peloton
- Owner: jchenry
- License: mit
- Created: 2020-04-09T00:28:04.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2023-02-22T15:40:24.000Z (over 3 years ago)
- Last Synced: 2024-06-20T15:56:54.403Z (about 2 years ago)
- Topics: golang, library, peloton
- Language: Go
- Homepage:
- Size: 17.6 KB
- Stars: 6
- Watchers: 4
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# peloton
A client library for the undocumented Peloton API
[](https://ci.j5y.xyz/jchenry/peloton)
## Install
```
go get github.com/jchenry/peloton
```
## Usage
```
j, _ := cookiejar.New(&cookiejar.Options{PublicSuffixList: publicsuffix.List})
c := peloton.Client{
HTTPClient: http.Client{
Jar: j,
},
}
peloton.Authenticate(c, "peloton_user", "password")
rides := peloton.GetRides(c, peloton.FilterSpec{
Category: peloton.Cycling,
Page: 0,
Limit: 10000,
})
fmt.Printf("%#v", rides)
```
## Contributing
PRs accepted.
## License
MIT © Colin Henry