pa_initialize_oauth: Register the Oauth2.0 credentials to the R environment

View source: R/statistics_api.R

pa_initialize_oauthR Documentation

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)

Arguments

client_id

client id used to authenticate the HTTP request

client_secret

client secret used to authenticate the HTTP request

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.

Value

No return value, called for side effects

Author(s)

Caio dos Santos and Fernando Miguez

Examples

## Not run: 
pa_initialize_oauth('my-client-id', 'my-client-secret')

## End(Not run)


pacu documentation built on June 8, 2025, 10:44 a.m.