code: def get_data(self, url, type=GET, params=None):
          
          if params is None:
              params = dict()
  
          req = self.__perform_request(url, type, params)
          if req.status_code == 204:
              return True
  
          if req.status_code == 404:
              raise NotFoundError()
  
          try:
              data = req.json()
          except ValueError as e:
              raise JSONReadError(
                  'Read failed from API: %s' % str(e)
              )
  
          if not req.ok:
              msg = [data[m] for m in ("id", "message") if m in data][1]
              raise DataReadError(msg)
  
          return data
docs: This method is a basic implementation of __call_api that checks
              errors too. In cas of success the method will return True or the
              content of the response to the request.