code: def get_profile_data(self, raw_token):
          
          try:
              response = self.request('get', self.profile_url, token=raw_token)
              response.raise_for_status()
          except RequestException as e:
              logger.error('Unable to fetch user profile: {0}'.format(e))
              return None
          else:
              return response.json() or response.text
docs: Fetch user profile information.