request: LCCS API request functions

Description Usage Arguments Value

Description

The get_request is used to express HTTP-GET verb in LCCS-WS endpoints

The post_request is used to express HTTP-POST verb in LCCS-WS endpoints. This require a BDC-OAuth token

The put_request is used to express HTTP-PUT verb in LCCS-WS endpoints. This require a BDC-OAuth token

The delete_request is used to express HTTP-DELETE verb in LCCS-WS endpoints. This require a BDC-OAuth token

Usage

1
2
3
4
5
6
7
get_request(q, ...)

post_request(q, ..., encode = c("json", "multipart", "form"))

put_request(q, ..., encode = c("json", "multipart", "form"))

delete_request(q, ...)

Arguments

q

a RLCCSQuery object expressing a LCCS query criteria.

...

extra parameters to be used in httr HTTP verbs functions (GET, POST, PUT, DELETE)

encode

a character informing the request body Content-Type. Accepted types are 'json' ('application/json'), 'form' ('application/x-www-form-urlencoded'), and 'multipart' ('multipart/form-data'). Defaults to 'json'.

Value

Returns an RLCCSDocument The contents of the class may vary depending on the operation being


brazil-data-cube/rlccs documentation built on Feb. 28, 2021, 5:50 p.m.