Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

oauth_endpoint

Describe an OAuth endpoint.


Description

See oauth_endpoints() for a list of popular OAuth endpoints baked into httr.

Usage

oauth_endpoint(request = NULL, authorize, access, ..., base_url = NULL)

Arguments

request

url used to request initial (unauthenticated) token. If using OAuth2.0, leave as NULL.

authorize

url to send client to for authorisation. Set to NULL if not needed

access

url used to exchange unauthenticated for authenticated token.

...

other additional endpoints.

base_url

option url to use as base for request, authorize and access urls.

See Also

Examples

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

httr

Tools for Working with URLs and HTTP

v1.4.2
MIT + file LICENSE
Authors
Hadley Wickham [aut, cre], RStudio [cph]
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.