php - Updating 1 group through MailChimp API v2.0 while multiple is created -


i have list consists of multiple groups, batchsubscribe want update single group in list, possible or every update should contain information other groups also?

replace_interest must set true (default)

this code batchsubscribe:

foreach ($company->users $user) {                 if ($this->isvalidadmin($user)) {                      $subscribers[] = ['email' => ['email'           => "$user->email"],                                                   'email_type'      => 'html',                                                   'merge_vars'      => ['fname'       => $user->first_name,                                                                         'lname'       => $user->last_name,                                                                         'mc_language' => $user->lang,                                                                         'groupings'   => [                                                                             ['id'     => config::get('mailchimp.companies.status'),                                                                              'groups' => [$company->status]]]]                     ];                 }      $subresult = $this->mailchimp->lists->batchsubscribe($adminlist, $subscribers, false, true); 

or not possible, , need include info groups api requests make?

in v2, need provide group data, there's no way partial updates. in v3 of api possible, though.


Comments

Popular posts from this blog

javascript - Chart.js (Radar Chart) different scaleLineColor for each scaleLine -

apache - Error with PHP mail(): Multiple or malformed newlines found in additional_header -

java - Android – MapFragment overlay button shadow, just like MyLocation button -