Description Usage Arguments Details Value
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.
1 | get_response(res, content_echo = TRUE)
|
res |
response object |
content_echo |
whether to print request content in console |
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.
The response object in prettified json format
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.