View source: R/Authentication.R
GetOAuthClient | R Documentation |
Gets an OAuth authentication client (httr2
OAuth client object)
GetOAuthClient(id, secret, url = getOption("CDSE.auth_url"))
id |
character, user OAuth client id |
secret |
character, user OAuth client secret |
url |
character, endpoint for requesting tokens. Default: Copernicus Data Space Ecosystem OAuth endpoint |
The client can be used in queries requiring the authentication.
httr2
OAuth client object
https://documentation.dataspace.copernicus.eu/APIs/SentinelHub/Overview/Authentication.html
GetOAuthToken
## Not run:
id <- "..."
secret <- "..."
OAuthClient <- GetOAuthClient(id = id, secret = secret)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.