2015-10-13 47 views

回答

1

如果您希望在通訊簿(https://www.surveymonkey.com/addressbook/)中存儲這些額外的自定義字段,那麼這些字段不適用於V2 API。在下一個版本的API中可以訪問它們。發佈日期還沒有確定,所以我只能說它已經在製作中了。

如果你正在尋找有額外的自定義字段管道輸送到電子郵件,那麼這是可能的。

實施例:

{ 
 
    "survey_id": "########", 
 
    "collector": { 
 
     "type": "email", 
 
     "name": "Test Collector", 
 
     "send": true, 
 
     "recipients": [ 
 
      { 
 
       "email": "[email protected]", 
 
       "custom_id": "Custom Value 1", 
 
       "recipient_attribute_values": ["Recipient Value 2", "Recipient Value 3"] 
 
      }] 
 
    }, 
 
    "email_message": { 
 
     "reply_email": "[email protected]", 
 
     "body_text": "[SurveyLink] [RemoveLink] [FooterLink] [custom_1] [recipient_attribute_1] [recipient_attribute_2]" 
 
    } 
 
}