Skip to contents

Consumer Key and Consumer Secret are available to authenticated users through EUMETSAT's EO Portal: https://api.eumetsat.int/api-key/.

Usage

authenticator(
  consumer_key = NULL,
  consumer_secret = NULL,
  save_creds = TRUE,
  return_header = FALSE
)

Arguments

consumer_key

EUMETSAT Consumer Key (default NULL; attempts to read from file)

consumer_secret

EUMETSAT Consumer Secret (default NULL; attempts to read from file)

save_creds

Whether credentials are to be stored in a file for later use (default TRUE)

return_header

Returns a httr::add_headers object with access token (default FALSE)

Value

API Access Token as a String or a httr header object

Examples

if(FALSE)
{
  authenticate("consumer_key_goes_here", "consumer_secret_goes_here")
}