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()
def user ( self , login = None ) : 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 ( )
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.