View source: R/Authentication.R
GetOAuthToken | R Documentation |
Gets an OAuth authentication token (long character string)
GetOAuthToken(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 token can be used in queries requiring the authentication.
Long character string containing the authentication token.
https://documentation.dataspace.copernicus.eu/APIs/SentinelHub/Overview/Authentication.html
GetOAuthClient
## Not run:
id <- "..."
secret <- "..."
token <- GetOAuthToken(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.