php - How do you subscribe and assign subscriber to group with the mailchimp api? -



php - How do you subscribe and assign subscriber to group with the mailchimp api? -

i attempting utilize api in php subscribe , assign subscriber group.

i need able create grouping on fly , i'm trying next not much success:

// include other relevant files here $merge_vars = array( 'fname'=>$name[0], 'lname'=>$name[1], 'interests'=>'', 'groupings'=>'pets' );

if remove 'groupings' array, subscribing works fine - we've got going... how groups?

thanks time

add 1 more thing in array i.e "email" => "test@test.com"

& when calling listsubscribe() check your

apikey, listid,

"email id add together in subscriber list comes here i.e test@test.com", email_type fields properly.

try this. helpful you.

php mailchimp

Comments

Popular posts from this blog

java - How to set log4j.defaultInitOverride property to false in jboss server 6 -

c - GStreamer 1.0 1.4.5 RTSP Example Server sends 503 Service unavailable -

Using ajax with sonata admin list view pagination -