def get_user_by_email(email, **kwargs): try: kwargs.update(dict(email=email)) return user_from_xml(get(path=resource_path, params_dict=kwargs)) except ResourceNotFound: return None
def get_user_by_id(id, **kwargs): path = "{0}/{1}".format(resource_path, id) return user_from_xml(get(path=path, params_dict=kwargs))