public function addSubscriber($email, $is_confirmed = true, $fields = [])
	{
		$subscriber = [
			'emailaddress' => $email,
			'fields' => $fields,
		];

		if (!$is_confirmed) {
			$subscriber = array_merge($subscriber, [
				'confirmed' => false,
				'confirmdate' => null,
				'confirmip' => null,
			]);
		}

		$result = $this->iconneqt->postListSubscriber($this->id, $subscriber);

		return $this->iconneqt->getListSubscriber($this->id, $result->subscriberid);
	}
public function addSubscriber($email, $is_confirmed = true, $fields = [])
	{
		$subscriber = [
			'emailaddress' => $email,
			'fields' => $fields,
		];

		if (!$is_confirmed) {
			$subscriber = array_merge($subscriber, [
				'confirmed' => false,
				'confirmdate' => null,
				'confirmip' => null,
			]);
		}

		$result = $this->iconneqt->postListSubscriber($this->id, $subscriber);

		return $this->iconneqt->getListSubscriber($this->id, $result->subscriberid);
	}
public function addSubscriber ( $ email , $ is_confirmed = true , $ fields = [ ] ) { $ subscriber = [ 'emailaddress' => $ email , 'fields' => $ fields , ] ; if ( ! $ is_confirmed ) { $ subscriber = array_merge ( $ subscriber , [ 'confirmed' => false , 'confirmdate' => null , 'confirmip' => null , ] ) ; } $ result = $ this -> iconneqt -> postListSubscriber ( $ this -> id , $ subscriber ) ; return $ this -> iconneqt -> getListSubscriber ( $ this -> id , $ result -> subscriberid ) ; }
Create a subscriber
@param string $email
@param bool $is_confirmed
@param array $fields
@return integer subscriberid
Create a subscriber