View source: R/statistics_api.R
pa_initialize_oauth | R Documentation |
Register the Oauth2.0 credentials to the R environment
pa_initialize_oauth(client_id, client_secret)
client_id |
client id used to authenticate the HTTP request |
client_secret |
client secret used to authenticate the HTTP request |
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.
No return value, called for side effects
Caio dos Santos and Fernando Miguez
## Not run:
pa_initialize_oauth('my-client-id', 'my-client-secret')
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.