pa_initialize_oauth: Register the Oauth2.0 credentials to the R environment
Description
Register the Oauth2.0 credentials to the R environment
Usage
pa_initialize_oauth(client_id, client_secret)
Value
No return value, called for side effects
Arguments
client_id
client id used to authenticate the HTTP request
client_secret
client secret used to authenticate the HTTP request
Author
Caio dos Santos and Fernando Miguez
Details
initialize_oauth registers the client id and secret to the machine's R environment
All the other functions that rely on authentication will search for the clients id ans secret in
the R environment. Do not share your R environment with others, as they will be able to read your client id and secret.
You can register at https://dataspace.copernicus.eu/news. Please see this section for how to create your Oauth2.0 client:
https://documentation.dataspace.copernicus.eu/APIs/SentinelHub/Overview/Authentication.html.