Builds the OAuth client object for google apis.
Usage
yt_construct_client(
client_id = Sys.getenv("YOUTUBE_CLIENT_ID"),
client_secret = Sys.getenv("YOUTUBE_CLIENT_SECRET")
)
Arguments
- client_id
A Google Cloud OAuth 2.0 client ID. We recommend you save it as an environment variable,
YOUTUBE_CLIENT_ID
.- client_secret
A Google Cloud OAuth 2.0 client secret. We recommend you save it as an environment variable,
YOUTUBE_CLIENT_SECRET
.
Value
An httr2::oauth_client()
object.