parse_api_output: ParseApiOutput
Description
Helper function to extract the content returned from the API.
Returns the status code otherwise.
Usage
parse_api_output(inputcontent)
Value
The extracted content if not error has occured. Otherwise, the error message is returned.
Arguments
- inputcontent
Takes the output of the GET function, runs an error check and returns the parsed output.