A client library for the undocumented Peloton API
go get github.com/jchenry/peloton
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)
PRs accepted.
MIT © Colin Henry