parse_api_output: ParseApiOutput

View source: R/ParseApiOutput.R

parse_api_outputR Documentation

ParseApiOutput

Description

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

Usage

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 Jan. 15, 2023, 5:07 p.m.