Learn R Programming

redcapAPI (version 2.10.0)

as.character.response: S3 method to turn curl response into character

Description

Converts a raw curl response into a character string.

Usage

# S3 method for response
as.character(x, ...)

Arguments

x

response from curl to render to character

...

If type='text/csv' this is passed to read.csv. If type='application/json' this is sent to jsonlite::fromJSON