parse_response function

Parse a Response From the API