get_request {rstac} | R Documentation |
STAC API request functions
Description
The get_request
is function that makes HTTP GET
requests to STAC web services, retrieves, and parse the data.
The post_request
is function that makes HTTP POST
requests to STAC web services, retrieves, and parse the data.
Usage
get_request(q, ...)
post_request(q, ..., encode = c("json", "multipart", "form"))
Arguments
q |
a |
... |
config parameters to be passed to GET or POST methods, such as add_headers or set_cookies. |
encode |
a |
Value
Either a doc_catalog
, doc_collection
,
doc_collections
, doc_items
or doc_item
object depending on the subclass and search fields parameters of q
argument.
See Also
stac()
stac_search()
collections()
items()
Examples
## Not run:
stac("https://brazildatacube.dpi.inpe.br/stac/") %>%
get_request()
stac("https://brazildatacube.dpi.inpe.br/stac/") %>%
stac_search(collections = "CB4-16D-2") %>%
post_request()
## End(Not run)