parse_api_output: ParseApiOutput

Description Usage Arguments Value

View source: R/ParseApiOutput.R

Description

Helper function to extract the content returned from the API. Returns the status code otherwise.

Usage

1
parse_api_output(inputcontent)

Arguments

inputcontent

Takes the output of the GET function, runs an error check and returns the parsed output.

Value

The extracted content if not error has occured. Otherwise, the error message is returned.


datagovsgR documentation built on July 1, 2020, 10:48 p.m.