mailchimp-api-v3.0

How to send a post request to mailchimp on express through react

∥☆過路亽.° 提交于 2021-02-11 07:21:55
问题 I am trying to send a new membership from a form in react to my express server to add to the mailchimp memberlist I am getting a cors error and I don't know if I am missing any proxys. I want a user to be able to sign up in react and then it sends it to the mailchimp database I have been able to get the members list but I am not allowed to post to it : This is my express backend : const express = require('express'); const Mailchimp = require('mailchimp-api-v3'); require('dotenv').config();

Updated how can i edit my script to import additionnal fields to mailchimp

时光怂恿深爱的人放手 提交于 2021-01-29 12:41:24
问题 hi and sorry for my errors now i have problem with fields, actually instead of having : firstname, lastname, email fields, business asking me to have 2 additionnal fields, job and country and i've updated my script with this : $person = @{ email_address=$email status ="subscribed" merge_fields = @{ FNAME=$firstname LNAME=$lastname title=$title Country=$country $dayAgo = (Get-Date).AddDays(-5).Date $users = Get-ADUser -Filter {whenCreated -ge $dayAgo} -Properties whenCreated, StartDate,

MailChimp. Error 401 (Unauthorized) when sending a request for adding a new list member

こ雲淡風輕ζ 提交于 2021-01-05 09:17:06
问题 Here is how I'm trying to send a request: fetch('https://us17.api.mailchimp.com/3.0/lists/185415c92c/members', { method: 'POST', headers: { 'Content-Type': 'application/json', 'Authorization': 'anystring:8ec49e64f2041073d3fe56e0abc5fe5f-us17', }, body: JSON.stringify({ email_address: 'email@mail.ru', status: 'subscribed', }), mode: 'no-cors', }) And I get such error: POST https://us17.api.mailchimp.com/3.0/lists/185415c92c/members 401 (Unauthorized) What am I doing wrong? 回答1: The

Mailchimp API: Send campaign to users with tags

折月煮酒 提交于 2020-12-13 03:28:58
问题 I'm trying to send a campaing to a segment based on Tags (That is to list members with a specific tag) using API calls with mailchimp3 for Django, but I can't quite find what should be the right json structure to make it, this is what I've got so far: campaign_creation = { "type": "regular", "recipients": { "list_id": LIST_ID, "segment_opts": { "match": "any", "conditions": [{ "condition_type": "StaticSegment", "op": "contains", "field": "Tags", "value": ["foo"] }] } }, "settings": { "subject

Change MailChimp's success/error message

本小妞迷上赌 提交于 2020-05-27 03:55:19
问题 I can't find this anywhere. Can anyone who's familiar with MailChimp advise? I've embed my form/input and there's some empty div's (below) which have error/success messages injected. <div id="mce-responses" class="clear"> <div class="response" id="mce-error-response" style="display:none"></div> <div class="response" id="mce-success-response" style="display:none"></div> </div> When I add custom text to the empty div's it just gets overwritten when the form is submitted so it's obviously

Change MailChimp's success/error message

╄→гoц情女王★ 提交于 2020-05-27 03:54:53
问题 I can't find this anywhere. Can anyone who's familiar with MailChimp advise? I've embed my form/input and there's some empty div's (below) which have error/success messages injected. <div id="mce-responses" class="clear"> <div class="response" id="mce-error-response" style="display:none"></div> <div class="response" id="mce-success-response" style="display:none"></div> </div> When I add custom text to the empty div's it just gets overwritten when the form is submitted so it's obviously