2017-03-06 68 views

回答

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