我正在尝试使用PHP和Engagespot创建一对一的用户通知系统。用户已登录,我调用了Engagespot.identifyUser()函数。在那之后,如果我向这个标识符发送通知,它会显示无效标识符。
这是我的API调用。
POST /2/campaigns HTTP/1.1
Host: api.engagespot.co
Api-Key: XXX
{
"campaign_name":"Test Campaign",
"notification":{
"title":"Hey XYZ, Message only for you.",
"message" : "How are you",
"icon":"http://mywebsite.com/icon.png",
"url":"https://mywebsite.com"
},
"send_to":"identifiers",
"identifiers" : ["daniel"]
}
你知道为什么这不管用吗?
发布于 2019-03-19 17:21:40
您需要确保标识符存在。如果Engagespot.identifyUser('daniel')
尚未执行,则不会映射该标识符,并且接口将抛出此错误。
解决方案是确保Engagespot.identifyUser('daniel')
正确执行。
https://stackoverflow.com/questions/54936990
复制相似问题