Description Usage Arguments Details Value Author(s) References See Also Examples
R wrapper for USGS/EROS Inventory Service Login API.
1 | espa_inventory_login(usgs_eros_username, usgs_eros_password, verbose = F)
|
usgs_eros_username |
Character. Your USGS registration username. You can register for an account at https://espa.cr.usgs.gov |
usgs_eros_password |
Character. Your USGS registration password. WARNING: USING THIS WITH R IS NOT PARTICULARLY SECURE. |
verbose |
Logical. Verbose execution? Default=F. |
Upon a successful login, an API key will be returned. This key will be active for one hour and should be destroyed upon final use of the service by calling the logout method. Users must have "Machine to Machine" access, which is established in the user's profile.
Character of the API KEY needed by the other inventory APIs.
Jonathan A. Greenberg (espa-tools@estarcion.net) (wrapper) and USGS ESPA Developers (API and documentation)
https://earthexplorer.usgs.gov/inventory/documentation/json-api#login
1 2 3 4 5 | ## Not run:
# Get API KEY (required EROS username/password):
apiKey=espa_inventory_login("myusername","mypassword")
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.