基本上我正在使用 Campaign Monitor 的 webhook。我创建了一个更新 webhook,所以当电子邮件更新时,Campaign Monitor 会向我指定的 URL 发送 HTTP POST 请求。我在解析 JSON 时遇到问题。
这里是:
POST /subscribe HTTP/1.1
Host: example.com:80
Accept: */*
Content-Type: application/json
{
"Events": [
{
"CustomFields": [
{
"Key": "website",
"Value": "http:\/\/example.org"
}
],
"Date": "2010-12-14 11:32:00",
"OldEmailAddress": "test@example.org",
"EmailAddress": "test@example.org",
"Name": "Test Subscriber Renamed",
"Type": "Update",
"State": "Active"
}
],
"ListID": "96c0bbdaa54760c8d9e62a2b7ffa2e13"
}
我查看了示例http://msdn.microsoft.com/en-ca/library/cc197957(v=vs.95).aspx但无法解决。
我想获取 OldEmailAddress、EmailAddress、Type 和 State。谢谢,
参考 Campaign Monitor 的 webhooks https://www.campaignmonitor.com/api/webhooks/#currently_available_webhooks
谢谢,