我只是想在MailChimp列表中添加一个新成员。但我一直收到以下错误,并且不太明白原因:
type: http://developer.mailchimp.com/documentation/mailchimp/guides/error-glossary/
title: Invalid Resource
status: 400
detail: The resource submitted could not be validated. For field-specific details, see the 'errors' array.
instance:
errors:
0
试图将一个成员添加到列表中,但我一直收到这个错误:无法验证提交的资源。有关特定字段的详细信息,请参阅“errors”数组.。
这是完整的输出-
Server is running on port 3000
John Doe johndoe123@gmail.com
{
type: 'https://mailchimp.com/developer/marketing/docs/errors/',
title: 'Invalid Resource',
status: 400,
detail: "The resource submitted c
我是新的单元测试和尝试测试控制器的方法,在Laravel5.1和嘲弄。
我正在尝试测试我编写的registerEmail方法,如下所示:
<?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
use Response;
use Mailchimp;
use Validator;
/**
* Class ApiController
* @package App\Http\Controllers
*/
class ApiController extends Controller
{
prot
我试图提交一个电子邮件,进入我的邮箱黑猩猩名单,我已经创建了。问题是,当我在生产环境中单击“订阅”时,我会在控制台中得到一条200 OK消息:
[ee0cda43-9651-4c7e-9499-ac499094d8b6] Started POST "/subscribe" for 127.0.0.1 at 2017-08-26 02:52:00 -0700
[ee0cda43-9651-4c7e-9499-ac499094d8b6] Processing by SubscriptionsController#subscribe as JSON
[ee0cda43-9651-4c
所以我使用的是node.js,我安装了modulem ailchimp (),所以我去官方网站阅读如何发送mailchimp电子邮件,我想出了标准的程序。
var MailChimpAPI = require('mailchimp').MailChimpAPI;
var apiKey = 'Your MailChimpAPI API Key';
try {
var api = new MailChimpAPI(apiKey, { version : '2.0' });
} catch (error) {
console.lo
有没有办法在Node.js中修复这个MailChimp应用程序接口错误?
{
type: 'http://developer.mailchimp.com/documentation/mailchimp/guides/error-glossary/',
title: 'Invalid Resource',
status: 400,
detail: "The resource submitted could not be validated. For field-specific details, see the 'errors
我一直在研究mailchimp api,我想知道如何显示列表的实时订户数量,这可能吗?有没有可能让这个计数器继续工作呢?也就是说,当用户加入时,数量会实时增加吗?
编辑:
我已经稍微习惯了API……
在使用了Drewm的mailchimp php包装器之后,它开始变得更有意义了……
到目前为止,我已经
// This is to tell WordPress our file requires Drewm/MailChimp.php.
require_once( 'src/Drewm/MailChimp.php' );
// This is for namespacin