tags:

views:

18

answers:

1

Hi there,

I am attempting to use the API in PHP to subscribe and assign a subscriber to a group.

I need to be able to create the group on the fly and I'm trying something like the following with not much success:

// include other relevant files here

$merge_vars = array(
   'FNAME'=>$name[0],
   'LNAME'=>$name[1], 
   'INTERESTS'=>'',
   'GROUPINGS'=>'Pets'
 );

If I remove the 'groupings' from the Array, the subscribing works just fine - so we've got that going... but how do we do groups?

Thanks for your time

A: 

Hello KeenLearner

Add 1 more thing in array i.e "EMAIL" => "[email protected]"

& when you calling listSubscribe() check your

apiKey, listId,

"email id which is to be add in subscriber list comes here i.e [email protected]", EMAIL_TYPE fields properly.

try this. It will be helpful for you.

Vaibhav Bhalke