.get_raw_response_body_or_stop | R Documentation |
This is a package-internal function for code-deduplication within various manual-layer functions.
.get_raw_response_body_or_stop(resultObject)
resultObject |
Should be a return value from an API function which uses
|
For the API-level functions which use .wrap_as_api_response
,
manual-layer functions will receive either (a) the raw HTTP body,
if the status_code
was 2xx, or (b) an ApiResponse
object. Using this function, callsites can get the HTTP body (if
available), else an informative stop()
.
The argument, as long as it's of type raw
. Else, stops. The
caller can then decode the raw body.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.