-
-
Notifications
You must be signed in to change notification settings - Fork 166
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
How to delete a member from a list? #300
Comments
Edit: I looked at their doc and actually I think they did it sensibly? What have you tried? Hyphens map to underscores, and HTTP verbs map to the verbs in the read me 1 to 1. |
It ended up being .actions(‘delete-permanent’).create
Replying from my phone but you can close this!
…On Fri, Jun 5, 2020 at 9:45 PM Amro Mousa ***@***.***> wrote:
Try something like
gibbon.lists(list_id).members(member_id).actions.delete_permanent.create()
This is a bit of a weird api semantically because they’ve used HTTP POST
instead of DELETE.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#300 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AACEK5Z23HSP4XMWDM4IUXTRVGNULANCNFSM4NVKQIUA>
.
|
Gotcha. Does .actions.delete_permanent.create() work? |
@amro @gregblass |
Thanks for confirming! |
Hey there!
I'm not sure if this changed recently in the MailChimp API, but sending a delete request when removing a subscriber from a list seems to just archived them: https://mailchimp.com/developer/reference/lists/list-members/
The last tab there says 'actions' - 'delete permanent' - however I'm having trouble mapping that to a gibbon request:
POST /lists/{list_id}/members/{subscriber_hash}/actions/delete-permanent
How would that look?
The text was updated successfully, but these errors were encountered: