<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def get_data(self, href=None):
 """Gets data from an insight with data links such as captions. 'href' the relative href to the data. May not be None. Returns the content of the data as a string. If the response status is not 2xx, throws an APIException. """


        # Argument error checking.
        assert href is not None

        raw_result = self.get(href)

        if raw_result.status < 200 or raw_result.status > 202:
            raise APIException(raw_result.status, raw_result.json)

        return raw_result.json