write function getMemberInfoFromPortal.