Skip to content

A client library for the undocumented Peloton API

License

Notifications You must be signed in to change notification settings

jchenry/peloton

Repository files navigation

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

About

A client library for the undocumented Peloton API

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages