parse_api_output {datagovsgR} | R Documentation |
Helper function to extract the content returned from the API. Returns the status code otherwise.
parse_api_output(inputcontent)
inputcontent |
Takes the output of the GET function, runs an error check and returns the parsed output. |
The extracted content if not error has occured. Otherwise, the error message is returned.