code: def user(self, login=None):
          '''
          Get user information.
  
          :param login: (optional) the login name of the user or None. If login is None
                        this method will return the information of the authenticated user.
          '''
          if login:
              url = '%s/user/%s' % (self.domain, login)
          else:
              url = '%s/user' % (self.domain)
  
          res = self.session.get(url, verify=self.session.verify)
          self._check_response(res)
  
          return res.json(f user(self, login=None):
          '''
          Get user information.
  
          :param login: (optional) the login name of the user or None. If login is None
                        this method will return the information of the authenticated user.
          '''
          if login:
              url = '%s/user/%s' % (self.domain, login)
          else:
              url = '%s/user' % (self.domain)
  
          res = self.session.get(url, verify=self.session.verify)
          self._check_response(res)
  
          return res.json()
docs: Get user information.
  
          :param login: (optional) the login name of the user or None. If login is None
                        this method will return the information of the authenticated user.