espa_inventory_post_api: espa_inventory_post_api

Description Usage Arguments Details Value Author(s) References See Also Examples

Description

R wrapper for USGS/EROS Inventory Service POST API.

Usage

1
espa_inventory_post_api(request_code, json_request_content, verbose = F)

Arguments

request_code

Character. One of the requests listed at https://earthexplorer.usgs.gov/inventory/documentation/json-api

json_request_content

List. Parameters to pass to the request system.

verbose

Logical. Verbose execution? Default=F.

Details

A function to convert requests to the USGS/EROS Inventory Service Request URL format (POST). In general, you shouldn't need to call this directly unless you want finer command-line control over requests.

Value

List generated from the request.

Author(s)

Jonathan A. Greenberg (espa-tools@estarcion.net) (wrapper) and USGS ESPA Developers (API and documentation)

References

https://earthexplorer.usgs.gov/inventory/documentation/json-api

See Also

espa_inventory_login,espa_inventory_get_api

Examples

1
2
3
4
5
6
7
## Not run:  
# Run the API retrieval command:
	login_parameters <- list(username="myusername",password="mypassword")
	espa_inventory_post_api(request_code="login",
    json_request_content=login_parameters,verbose=verbose)

## End(Not run)

espa.tools documentation built on May 2, 2019, 5:54 p.m.