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

View source: R/makeApiCall.R

as.character.responseR Documentation

S3 method to turn curl response into character

Description

Converts a raw curl response into a character string.

Usage

## S3 method for class '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


redcapAPI documentation built on Oct. 17, 2024, 5:07 p.m.