我在通过 Zapier 标记对讲机中的潜在客户时遇到问题。Zapier 提供“标记用户”操作,但没有提供线索。由于 Intercom 要求根据 ID(而不是通过电子邮件)对潜在客户进行标记,因此无法使用现有的 Zapier 操作。
1 回答
1
这是我的解决方案:
fetch('https://api.intercom.io/tags', {
method: 'POST',
headers: {
'Authorization': 'Bearer YOUR_ACCESS_TOKEN',
'Accept': 'application/json',
'Content-Type': 'application/json'
},
body: JSON.stringify({
name: 'YOUR TAG NAME',
user: [{ id: input.leadId }]
})
})
.then(function(res) {
callback(null, JSON.parse(res.text()));
})
.catch(callback);
于 2017-05-09T22:19:55.610 回答