Description Usage Arguments Value Examples
This will cancel the order placed earlier through espa_order
1 2 | espa_cancel_order(order_id, host = "https://espa.cr.usgs.gov/api/v1/",
username = NULL, password = NULL)
|
order_id |
vector of order ids to be cancelled |
host |
the api call host. Default set to espa v1 web api |
username |
default NULL, which fetches the username from the global environment. If defined otherwise, will run the api with the provided details |
password |
default NULL, which fetches the password from the global environment. If defined otherwise, will run the api with the provided details |
vector of order ids which could NOT be cancelled
1 2 3 4 5 6 7 | ## Not run:
# input the credentials, if not defined earlier
espa_creds("your_espaname", "secret_password")
# Cancel orders
## return NULL as credentials not valid
espa_cancel_order(order_id = c("your_order_id1", "your_order_id2"))
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.