【发布时间】:2021-12-03 06:44:15
【问题描述】:
我在向 ActiveCampaign 添加联系人时遇到问题。我在这里阅读了一篇文章:How to add a contact to a list in ActiveCampaign API v3,并且正在使用 API 的 v1。我尽我所能使用了他们的contact_sync 文档。
我正在使用 Gatsby/React --> GitHub --> Netlify 进行开发,对 POST 请求使用 lamda 函数。
这是我的 axios POST:
{
method: 'post',
url: 'https://ACCOUNT.api-us1.com/admin/api.php?api_key=xxxxxxxxxxxx&api_action=contact_sync&api_output=json',
headers: { 'Content-Type': 'Content-Type: application/x-www-form-urlencoded' },
body: {
email: 'email@email.com',
first_name: 'John'
}
}
并收到如下回复:
{
result_code: 0,
result_message: 'Could not add contact; missing email address',
result_output: 'json'
}
我正在与他们的端点交谈。我只是不知道如何向端点提供电子邮件地址?
有没有人愿意分享一个可行的例子?任何形式的指导将不胜感激!
【问题讨论】: