public static function subscribeNewUser($email,$listid,$confirm = false){
    	$data = [
    			'email_address' => $email,
    			'status' => ($confirm ? 'pending' : 'subscribed'),
    	];
    	if (!empty($merge_fields)) $data['merge_fields'] = $merge_fields;
    	$action = self::$api_version.'/lists/'.$listid.'/members/';
    	 
    	return self::send($action, 'POST', $data);
    	
    }
public static function subscribeNewUser($email,$listid,$confirm = false){
    	$data = [
    			'email_address' => $email,
    			'status' => ($confirm ? 'pending' : 'subscribed'),
    	];
    	if (!empty($merge_fields)) $data['merge_fields'] = $merge_fields;
    	$action = self::$api_version.'/lists/'.$listid.'/members/';
    	 
    	return self::send($action, 'POST', $data);
    	
    }
public static function subscribeNewUser ( $ email , $ listid , $ confirm = false ) { $ data = [ 'email_address' => $ email , 'status' => ( $ confirm ? 'pending' : 'subscribed' ) , ] ; if ( ! empty ( $ merge_fields ) ) $ data [ 'merge_fields' ] = $ merge_fields ; $ action = self :: $ api_version . '/lists/' . $ listid . '/members/' ; return self :: send ( $ action , 'POST' , $ data ) ; }
subscribe new user to a given listid
@param $email
@param $listid
@return mixed
subscribe new user to a given listid