Description Usage Arguments Value See Also
return_status checks whether an HTTP request was successful and prints the contents of the error if
the request was not successful.
1 2 | return_status(response_data, ok_status = c(200, 201, 202),
print_when_ok = "Done.\n")
|
response_data |
HTTP response. |
ok_status |
the status code that indicates the HTTP request was successful. |
print_when_ok |
the message to print if the HTTP request was successful. |
For successful HTTP requests, return_status returns TRUE and prints the print_when_ok message. For
unsuccessful HTTP requests, return_status returns FALSE and prints the content of the response message.
api_get_batch, api_create, api_update,
api_delete, api_get, api_search_by_epicid,
api_search_by_updated_at, api_check
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.