-
Notifications
You must be signed in to change notification settings - Fork 504
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Struggling to remove a tag from a user #300
Comments
@drewm sorry to tag you directly. Do you have any insight into what's wrong here? |
From my understandings of what I find on https://mailchimp.com/developer/api/marketing/list-member-tags/ the only difference between adding or deleting would be setting the status to active or inactive. But when I try to add a tag with this code: $result = I don't get an error but the tag doesn't get added. |
You can add a tag like this: $result = $MailChimp->post("lists/$list_id/members/$subscriber_hash/tags", [ But I am struggling to remove tags too. |
For future reference. As listed in the mailchimp api docs a status property has to be passed along with the tag name.
|
I can add tags successfully but when I try to delete a tag from a user I get an error.
Here's my code:
The error I'm getting is
ErrorException: Undefined offset: 1 in file /Users/mick/repos/sbx/vendor/drewm/mailchimp-api/src/MailChimp.php on line 340
Thanks 🤘
The text was updated successfully, but these errors were encountered: