
Converts a raw curl response into a character string.
# S3 method for response
as.character(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