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

Ale*_*u R 7 email mandrill

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

Way*_*haw 8

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

JSON请求

{
"key": "example key",
"id": "abc123abc123abc123abc123"
}
Run Code Online (Sandbox Code Playgroud)

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"
    }
]
}
Run Code Online (Sandbox Code Playgroud)

有人:)