public function getUsersList() {
        $response=CodeBank_ClientAPI::responseBase();
        
        $members=Permission::get_members_by_permission(array('ADMIN', 'CODE_BANK_ACCESS'));
        foreach($members as $member) {
            $response['data'][]=array(
                                    'id'=>$member->ID,
                                    'username'=>$member->Email,
                                    'lastLogin'=>$member->LastVisited
                                );
        }
        
        
        return $response;
    }
public function getUsersList() {
        $response=CodeBank_ClientAPI::responseBase();
        
        $members=Permission::get_members_by_permission(array('ADMIN', 'CODE_BANK_ACCESS'));
        foreach($members as $member) {
            $response['data'][]=array(
                                    'id'=>$member->ID,
                                    'username'=>$member->Email,
                                    'lastLogin'=>$member->LastVisited
                                );
        }
        
        
        return $response;
    }
public function getUsersList ( ) { $ response = CodeBank_ClientAPI :: responseBase ( ) ; $ members = Permission :: get_members_by_permission ( array ( 'ADMIN' , 'CODE_BANK_ACCESS' ) ) ; foreach ( $ members as $ member ) { $ response [ 'data' ] [ ] = array ( 'id' => $ member -> ID , 'username' => $ member -> Email , 'lastLogin' => $ member -> LastVisited ) ; } return $ response ; }
Gets a list of users in the database
@return {array} Returns a standard response array
Gets a list of users in the database