def process_response ( self , response ) : if response . status_code != 200 : raise TwilioException ( 'Unable to fetch page' , response ) return json . loads ( response . text )
python response json load
Load a JSON response .
def process_response(self, response):
        """
        Load a JSON response.

        :param Response response: The HTTP response.
        :return dict: The JSON-loaded content.
        """
        if response.status_code != 200:
            raise TwilioException('Unable to fetch page', response)

        return json.loads(response.text)