This is a function to authorize the R package to access the Googleslides API. If no client.id and client.secret is provided, the package would provide predefined values.
authorize(
client_id = getOption("slides.client.id"),
client_secret = getOption("slides.client.secret"),
token = NULL,
...
)
OAuth client ID. This is obtained from Google API Credentials
OAuth client secret. This is obtained from Google API Credentials
an output from oauth2.0_token
to set as the
authentication token.
additional arguments to send to oauth2.0_token