addressalign-toparrow-leftarrow-leftarrow-right-10x10arrow-rightbackbellblockcalendarcameraccwcheckchevron-downchevron-leftchevron-rightchevron-small-downchevron-small-leftchevron-small-rightchevron-small-upchevron-upcircle-with-checkcircle-with-crosscircle-with-pluscontroller-playcredit-cardcrossdots-three-verticaleditemptyheartexporteye-with-lineeyefacebookfolderfullheartglobe--smallglobegmailgooglegroupshelp-with-circleimageimagesinstagramFill 1languagelaunch-new-window--smalllight-bulblightning-boltlinklocation-pinlockm-swarmSearchmailmediummessagesminusmobilemoremuplabelShape 3 + Rectangle 1ShapeoutlookpersonJoin Group on CardStartprice-ribbonprintShapeShapeShapeShapeImported LayersImported LayersImported Layersshieldstar-shapestartickettrashtriangle-downtriangle-uptwitteruserwarningyahooyoutube

Re: [php-49] MailChimp Question

From: Andrew B.
Sent on: Thursday, August 11, 2016, 4:30 PM

It looks like you're using the deprecated json rpc api, but not sure which version or which PHP wrapper... It's been a while but I seem to remember the GROUPINGS key needing both an ID and a name in its values, at least in some versions. I'd check the api docs for the version you're using and see if that's it.


On Aug 11,[masked]:43 PM, "Alfredo Juarez" <[address removed]> wrote:
Hey there!

So, I am having an issue with the MailChimp API, and I am wondering if one of you could help me.

Situation is as follows: I have a master list and sub groups. I have the following code:

```php:
$options = ['groupings' => [0 => ['id' => 12345']]];

$mcapi->listSubscribe($listID, $post['mc-email'], $options);
```

When I run this code, it actually subscribes the user to the master list, but not on the sub-group, even though I am supposedly passing the group’s ID.

Any idea?

Thanks in advance!

— Alfredo J





--
Please Note: If you hit "REPLY", your message will be sent to everyone on this mailing list ([address removed])
This message was sent by Meetup on behalf of Alfredo Juarez from Seattle PHP User Group.
To report this message or block the sender, please click here
Set my mailing list to email me As they are sent | In one daily email | Don't send me mailing list messages

Meetup, POB 4668 #37895 NY NY USA 10163 | [address removed]

People in this
group are also in: