Skip to contents

The body of the response contains raw bytes. After converting these bytes to a string, encoding is done to resolve a UTF-8 issue from Megamation's side.

Usage

mm_resp_extract(resp)

Arguments

resp

An API response.

Value

A data frame containing the endpoint data.

Details

mm_resp_extract() parses the raw bytes from an API response, and extracts data from the parsed object.

Examples

# Returns NULL from an empty response body
resp <- httr2::response_json()
resp |> megamation:::mm_resp_extract()
#> NULL