powered by
To check espa credentials and if espa-api is responding. Suggest to use espa_creds function to store your credentials before running this function
espa_creds
espa_user(host = "https://espa.cr.usgs.gov/api/v1/", username = NULL, password = NULL)
the api call host. Default set to espa v1 web api
default NULL, which fetches the username from the global environment. If defined otherwise, will run the api with the provided details
default NULL, which fetches the password from the global environment. If defined otherwise, will run the api with the provided details
logical. TRUE if user is active, FALSE if credentials are wrong or API is unresponsive
# NOT RUN { ## inputting the credentials espa_creds("your_espaname", "secret_password") ## checking if the user is valid espa_user() # returns FALSE # }
Run the code above in your browser using DataLab