元素/属性 | 类型 | 描述 |
---|---|---|
CustomEventId | int | 目标要被触发的【自定义任务】ID. 必填. |
SubscriberId | int | 目标将要被工作流吸入的收件人ID. 选填*. |
CustomSubscriberId | string | 目标将要被工作流吸入的收件人标识ID. 选填. |
SubscriberEmail | string | 目标将要被工作流吸入的收件人email. 选填*. |
SubscriberPhone | string | 目标将要被工作流吸入的收件人电话号码. 选填. |
DataFields | complex | 跟该【自定义任务】相关的元素集合(DataField 子元素集). 选填. |
*SubscriberId, CustomSubscriberId,SubscriberEmail or SubscriberPhone 都可以用来指定收件人. 如果上述超过一个子元素被指定,那么优先顺序将遵从上述表格顺序.
元素/属性 | 类型 | 描述 |
---|---|---|
Name | string | data field数据字段名称. 必填. |
Type | string | data field(数据字段)类型. 支持以下数据类型:
|
Value | string | data field(数据字段)的值. 必填. |
POST https://api.esv2.com/v2/Api/WorkflowCustomEvents HTTP/1.1
Accept-Encoding: gzip,deflate
Content-Type: application/xml;charset=UTF-8
Content-Length: 258
Host: api.esv2.com
Connection: Keep-Alive
User-Agent: Apache-HttpClient/4.1.1 (java 1.5)
<ApiRequest xmlns:xsi=”http://www.w3.org/2001/XMLSchema-instance” xmlns:xs=”http://www.w3.org/2001/XMLSchema”>
<ApiKey>test_api_key1</ApiKey>
<Data>
<CustomEventId>1</CustomEventId>
<SubscriberId>1</SubscriberId>
</Data>
</ApiRequest>
|
POST https://api.esv2.com/v2/Api/WorkflowCustomEvents HTTP/1.1
Accept-Encoding: gzip,deflate
Content-Type: application/xml;charset=UTF-8
Content-Length: 1002
Host: api.esv2.com
Connection: Keep-Alive
User-Agent: Apache-HttpClient/4.1.1 (java 1.5)
<ApiRequest xmlns:xsi=”http://www.w3.org/2001/XMLSchema-instance” xmlns:xs=”http://www.w3.org/2001/XMLSchema”>
<ApiKey>test_api_key1</ApiKey>
<Data>
<CustomEventId>1</CustomEventId>
<SubscriberId>1</SubscriberId>
<DataFields>
<DataField>
<Name>test_text</Name>
<Type>Text</Type>
<Value>foobar</Value>
</DataField>
<DataField>
<Name>test_number</Name>
<Type>Number</Type>
<Value>123</Value>
</DataField>
<DataField>
<Name>test_date</Name>
<Type>Date</Type>
<Value>2015-01-23</Value>
</DataField>
<DataField>
<Name>test_datetime</Name>
<Type>Datetime</Type>
<Value>2015-01-23 12:34:56</Value>
</DataField>
<DataField>
<Name>test_boolean</Name>
<Type>Boolean</Type>
<Value>false</Value>
</DataField>
</DataFields>
</Data>
</ApiRequest>
|