Learn R Programming

ubeR (version 0.1.4)

uber_oauth: Authenticate with the Uber API

Description

This function wraps the process of OAuth2.0 authentication with the Uber API. This must be done before further interactions can take place.

Usage

uber_oauth(client_key, client_secret, cache = TRUE)

Arguments

client_key
The client key provided by Uber.
client_secret
The client secreat provided by Uber.
cache
Whether or not to cache authentication token.

Details

If cache = TRUE then the authentication token will be stored in a .httr-oauth file.

See Also

oauth_app.

Examples

Run this code
## Not run: ------------------------------------
# # The key/secret combination below is not valid.
# uber_oauth("ReTZRlEGNnzkitsn-A23MiXbnMNzdQf8",
#            "NpWYGY8W7cv63tfM2neciVpjZOAF_wx1GHRG94A2")
## ---------------------------------------------

Run the code above in your browser using DataLab