def parse_response(request)
      raw = JSON.parse(request.body)
      unless raw.first == "ok" || raw.first == "OK"
        raise VoipfoneAPIError, raw.first
      end
      raw.last
    end
def parse_response(request)
      raw = JSON.parse(request.body)
      unless raw.first == "ok" || raw.first == "OK"
        raise VoipfoneAPIError, raw.first
      end
      raw.last
    end
Responses from the private Voipfone API are always in the form ["message", {content}]
 We will strip the message (hopefully "OK"), raise if not OK, and return the content.
 @param request [JSON] The raw request response from the Voipfone API
 @return [Hash] the parsed JSON