Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // this is inside my subscriber_post_php_file:
- $subscriber_geral = $Mailchimp_Lists->subscribe($list_id_geral, array( 'email' => $email), array('new-email' => $email, 'groupings' => null, 'optin_ip' => $ip, 'optin_time' => date('Y-m-d H:i:s',strtotime("now")), array('latitude' => null,'longitude' => null,'anything' => $ip), null, null), html, false, true, true, false );
- // this is the subscribe function:
- public function subscribe($id, $email, $merge_vars=null, $email_type='html', $double_optin=true, $update_existing=false, $replace_interests=true, $send_welcome=false) {
- $_params = array("id" => $id, "email" => $email, "merge_vars" => $merge_vars, "email_type" => $email_type, "double_optin" => $double_optin, "update_existing" => $update_existing, "replace_interests" => $replace_interests, "send_welcome" => $send_welcome);
- print "<br><br>_params: ";
- print_r($_params);
- print "<br><br>merge_vars: ";
- print_r($merge_vars);
- return $this->master->call('lists/subscribe', $_params);
- }
- // this is the print_r results:
- _params: Array ( [id] => 4asfdsf147 [email] => Array ( [email] => contato@fsdfsfdf.com ) [merge_vars] => Array ( [new-email] => contato@fdfdsfdsf.com [groupings] => [optin_ip] => 200.64.36.221 [optin_time] => 2014-04-11 09:36:30 [0] => Array ( [latitude] => [longitude] => [anything] => 200.64.36.221 ) [1] => [2] => ) [email_type] => html [double_optin] => [update_existing] => 1 [replace_interests] => 1 [send_welcome] => )
- merge_vars: Array ( [new-email] => contato@ffdsfdsfds.com [groupings] => [optin_ip] => 200.64.36.221 [optin_time] => 2014-04-11 09:36:30 [0] => Array ( [latitude] => [longitude] => [anything] => 200.64.36.221 ) [1] => [2] => )
Add Comment
Please, Sign In to add comment