如何通过API获取有关使用Mandrill发送的电子邮件的统计信息?

时间:2012-10-29 20:17:05

标签: email mandrill

我无法找到通过Mandrill应用程序发送的与电子邮件相关的所有统计信息的方法吗?你使用Mandrill api获取统计数据吗?

1 个答案:

答案 0 :(得分:8)

我认为在1年多的时间之后,现在可以通过Mandrill“消息呼叫”基于个人消息进行查询,例如在https://mandrillapp.com/api/docs/messages.JSON.html#method-info

JSON请求

{
"key": "example key",
"id": "abc123abc123abc123abc123"
}

JSON响应

{
"ts": 1365190000,
"_id": "abc123abc123abc123abc123",
"sender": "sender@example.com",
"template": "example-template",
"subject": "example subject",
"email": "recipient.email@example.com",
"tags": [
    "password-reset"
],
"opens": 42,
"opens_detail": [
    {
        "ts": 1365190001,
        "ip": "55.55.55.55",
        "location": "Georgia, US",
        "ua": "Linux/Ubuntu/Chrome/Chrome 28.0.1500.53"
    }
],
"clicks": 42,
"clicks_detail": [
    {
        "ts": 1365190001,
        "url": "http://www.example.com",
        "ip": "55.55.55.55",
        "location": "Georgia, US",
        "ua": "Linux/Ubuntu/Chrome/Chrome 28.0.1500.53"
    }
],
"state": "sent",
"metadata": {
    "user_id": "123",
    "website": "www.example.com"
},
"smtp_events": [
    {
        "ts": 1365190001,
        "type": "sent",
        "diag": "250 OK"
    }
]
}
某人:)......