GetOAuthToken {CDSE}R Documentation

Get OAuth token

Description

Gets an OAuth authentication token (long character string)

Usage

GetOAuthToken(id, secret, url = getOption("CDSE.auth_url"))

Arguments

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

Details

The token can be used in queries requiring the authentication.

Value

Long character string containing the authentication token.

Source

https://documentation.dataspace.copernicus.eu/APIs/SentinelHub/Overview/Authentication.html

See Also

GetOAuthClient

Examples

## Not run: 
id <- "..."
secret <- "..."
token <- GetOAuthToken(id = id, secret = secret)

## End(Not run)

[Package CDSE version 0.2.0 Index]