连接写回的 JSON 格式可用。在处理 eventNotifications 时,确定它是否以 JSON Vs 回写的部分。XML 包含您在此处设置的 eventData 参数。如果去掉 eventData 部分,写回将以 XML 而不是 JSON 形式恢复。
XML 写回示例:
"eventNotification": {
"url": "https://asdfasdf.proxy.webhookapp.com",
"requireAcknowledgment": "true",
"loggingEnabled": "true",
"includeDocuments":"true",
"envelopeEvents": [
{"envelopeEventStatusCode": "Sent"},
{"envelopeEventStatusCode": "Delivered"},
{"envelopeEventStatusCode": "Completed"},
{"envelopeEventStatusCode": "Declined"},
{"envelopeEventStatusCode": "Voided"}
],
"recipientEvents": [
{"recipientEventStatusCode": "Sent"},
{"recipientEventStatusCode": "Delivered"},
{"recipientEventStatusCode": "Completed"},
{"recipientEventStatusCode": "Declined"},
{"recipientEventStatusCode": "AuthenticationFailed"},
{"recipientEventStatusCode": "AutoResponded"}
]
}
JSON 写回示例:
"eventNotification": {
"url": "https://asdfasdf.proxy.webhookapp.com",
"requireAcknowledgment": "true",
"loggingEnabled": "true",
"envelopeEvents": [
{"envelopeEventStatusCode": "Sent"},
{"envelopeEventStatusCode": "Delivered"},
{"envelopeEventStatusCode": "Completed"},
{"envelopeEventStatusCode": "Declined"},
{"envelopeEventStatusCode": "Voided"}
],
"recipientEvents": [
{"recipientEventStatusCode": "Sent"},
{"recipientEventStatusCode": "Delivered"},
{"recipientEventStatusCode": "Completed"},
{"recipientEventStatusCode": "Declined"},
{"recipientEventStatusCode": "AuthenticationFailed"},
{"recipientEventStatusCode": "AutoResponded"}
],
"eventData": {
"version": "restv2.1",
"format": "json",
"includeData": ["custom_fields", "extensions", "folders",
"recipients", "powerform", "tabs", "payment_tabs","documents"]
}
我知道这张票有点陈旧,如果您仍然对此有疑问并希望得到一些帮助,请随时在支持下打开一张票,我本人或我团队中的某个人将很乐意引导您完成此操作。
问候, 马特