Zend/Gdata/Gapps.php
public function insertEmailListRecipient($recipient, $uri = null)
    {
        if ($uri === null) {
            require_once 'Zend/Gdata/App/InvalidArgumentException.php';
            throw new Zend_Gdata_App_InvalidArgumentException(
                    'URI must not be null');
        } elseif ($uri instanceof Zend_Gdata_Gapps_EmailListEntry) {
            $uri = $uri->getLink('edit')->href;
        }
        $newEntry = $this->insertEntry($recipient, $uri, 'Zend_Gdata_Gapps_EmailListRecipientEntry');
        return $newEntry;
    }
public function insertEmailListRecipient($recipient, $uri = null)
    {
        if ($uri === null) {
            require_once 'Zend/Gdata/App/InvalidArgumentException.php';
            throw new Zend_Gdata_App_InvalidArgumentException(
                    'URI must not be null');
        } elseif ($uri instanceof Zend_Gdata_Gapps_EmailListEntry) {
            $uri = $uri->getLink('edit')->href;
        }
        $newEntry = $this->insertEntry($recipient, $uri, 'Zend_Gdata_Gapps_EmailListRecipientEntry');
        return $newEntry;
    }
public function insertEmailListRecipient ( $ recipient , $ uri = null ) { if ( $ uri === null ) { require_once 'Zend/Gdata/App/InvalidArgumentException.php' ; throw new Zend_Gdata_App_InvalidArgumentException ( 'URI must not be null' ) ; } elseif ( $ uri instanceof Zend_Gdata_Gapps_EmailListEntry ) { $ uri = $ uri -> getLink ( 'edit' ) -> href ; } $ newEntry = $ this -> insertEntry ( $ recipient , $ uri , 'Zend_Gdata_Gapps_EmailListRecipientEntry' ) ; return $ newEntry ; }
Create a new email list recipient from an EmailListRecipientEntry.

@param Zend_Gdata_Gapps_EmailListRecipientEntry $recipient The recipient
entry to insert.
@param string $uri (optional) The URI where the recipient should be
uploaded to. If null, the default recipient creation URI for
this domain will be used.
@return Zend_Gdata_Gapps_EmailListRecipientEntry The inserted
recipient entry as returned by the server.
@throws Zend_Gdata_App_Exception
@throws Zend_Gdata_App_HttpException
@throws Zend_Gdata_Gapps_ServiceException
Create a new email list recipient from an EmailListRecipientEntry .