peloton_auth: 'POST' credentials to Peloton's auth/login endpoint

Description Usage Arguments Examples

View source: R/peloton_auth.R

Description

Users needs to run this each session in order to authenticate any requests made against other Pelton endpoints. Set environmental variables `PELOTON_LOGIN` and `PELOTON_PASSWORD`, or provide them yourself.

Usage

1
2
3
4
peloton_auth(
  login = Sys.getenv("PELOTON_LOGIN"),
  password = Sys.getenv("PELOTON_PASSWORD")
)

Arguments

login

Peloton login

password

Peloton password

Examples

1
2
3
4
## Not run: 
peloton_auth() # need to run each session to authorize any other API requests

## End(Not run)

bweiher/pelotonR documentation built on Jan. 9, 2021, 1:36 a.m.