See oauth_endpoints()
for a list of popular OAuth endpoints
baked into httr.
oauth_endpoint(request = NULL, authorize, access, ..., base_url = NULL)
url used to request initial (unauthenticated) token.
If using OAuth2.0, leave as NULL
.
url to send client to for authorisation. Set to NULL
if not needed
url used to exchange unauthenticated for authenticated token.
other additional endpoints.
option url to use as base for request
,
authorize
and access
urls.
Other OAuth:
oauth1.0_token()
,
oauth2.0_token()
,
oauth_app()
,
oauth_service_token()
# NOT RUN {
linkedin <- oauth_endpoint("requestToken", "authorize", "accessToken",
base_url = "https://api.linkedin.com/uas/oauth"
)
github <- oauth_endpoint(NULL, "authorize", "access_token",
base_url = "https://github.com/login/oauth"
)
facebook <- oauth_endpoint(
authorize = "https://www.facebook.com/dialog/oauth",
access = "https://graph.facebook.com/oauth/access_token"
)
oauth_endpoints
# }
Run the code above in your browser using DataLab