0

在将新闻通讯发送到电子邮件列表后,我很难找到 API 来获取打开新闻通讯的人的联系人。在 GetResponse 的官方 API 文档中,我没有找到解决方案。任何想法或建议都可以提供帮助。谢谢。

4

1 回答 1

0

虽然现在已经很老了,但我会尝试回答,也许它可以帮助某人。

就像在 GetResponse 网络界面中一样,您需要根据某些条件搜索联系人。API 文档的这些页面描述了这是如何完成的: http: //apidocs.getresponse.com/v3/resources/search-contacts

搜索联系人是 API 中最复杂的部分。要保存对打开特定消息的联系人的搜索,您需要将以下内容发布到https://api.getresponse.com/v3/search-contacts/

{
    "name": "test_conditions", //can be any you like
    "subscribersType": [
        "subscribed" //can also be "undelivered", "removed" and "unconfirmed" 
    ],
    "sectionLogicOperator": "or", //or "and"
    "section": [ //section can have up to 8 conditions; one saved search can have up to 4 sections
        {
            "campaignIdsList": [
                "V" //you'll need to get campaigns' IDs with http://apidocs.getresponse.com/v3/resources/campaigns#campaigns.get.all
            ],
            "logicOperator": "or",
            "subscriberCycle": [
                "receiving_autoresponder",
                "not_receiving_autoresponder"
            ],
            "subscriptionDate": "all_time", //"today", "yesterday", "this_month", "last_month", "this_week", "last_week" are also possible
            "conditions": [
                {
                  "conditionType": "opened",
                  "operatorType": "message_operator",
                  "operator": "autoresponder", //or "newsletter", or "split"
                  "value": "WTjXF" //message id, should be firstly got with a separate API call
                }

            ]
        }
    ]
}

有关如何形成此类请求的有效负载的更多信息,请参见此处:http ://apidocs.getresponse.com/v3/resources/search-contacts-reference

最后一点:如果您不需要保存搜索而只获取打开消息的电子邮件,则在上面的对象中,您应该删除“名称”属性并将其发布到http://apidocs.getresponse .com/v3/search-contacts/contacts 更多:http ://apidocs.getresponse.com/v3/resources/search-contacts#search-contacts.contacts.form

于 2017-10-28T21:14:14.287 回答