Skip to content

Latest commit

 

History

History
37 lines (27 loc) · 660 Bytes

README.md

File metadata and controls

37 lines (27 loc) · 660 Bytes

peloton

A client library for the undocumented Peloton API

Build Status

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