There are two parts in response: response status and response content. The status report whether the request is success, and the content is the return value of API call.

get_response(res, content_echo = TRUE)

Arguments

res
response object
content_echo
whether to print request content in console

Value

If no_echo is FALSE, the response object in prettified json format

Details

Run function without assigning return value will print both status and response in console. Assigning return value will only print the status in console, then save the content in prettified json format.

Function will stop for http error.