library/Garp/Service/MailChimp.php
public function listSubscribe($options) {
        if (!$options instanceof Garp_Util_Configuration) {
            $options = new Garp_Util_Configuration($options);
        }
        $options->obligate('email_address')
                ->obligate('id')
                ->setDefault('merge_vars', array('LNAME' => '', 'FNAME' => ''))
                ;
        $options['method'] = 'listSubscribe';
        return $this->_send((array)$options);
    }
public function listSubscribe($options) {
        if (!$options instanceof Garp_Util_Configuration) {
            $options = new Garp_Util_Configuration($options);
        }
        $options->obligate('email_address')
                ->obligate('id')
                ->setDefault('merge_vars', array('LNAME' => '', 'FNAME' => ''))
                ;
        $options['method'] = 'listSubscribe';
        return $this->_send((array)$options);
    }
public function listSubscribe ( $ options ) { if ( ! $ options instanceof Garp_Util_Configuration ) { $ options = new Garp_Util_Configuration ( $ options ) ; } $ options -> obligate ( 'email_address' ) -> obligate ( 'id' ) -> setDefault ( 'merge_vars' , array ( 'LNAME' => '' , 'FNAME' => '' ) ) ; $ options [ 'method' ] = 'listSubscribe' ; return $ this -> _send ( ( array ) $ options ) ; }
Subscribe the provided email to a list.
@param Array|Garp_Util_Configuration $options
@return StdClass
Subscribe the provided email to a list .