获取禁止列表

Get suppression lists 获取禁止列表信息

列表相关操作允许获取所有单元中启用的禁止列表数据.

请求数据格式

请求URL参数:
参数 类型 描述
apiKey string 你的API Key, 需要验证. 必填.

示例:

https://api.esv2.com/v2/Api/SuppressionLists?apiKey=YOUR_API_KEY_HERE

应答

应答数据元素:
元素/属性 类型 描述
SuppressionLists array[complex] SuppressionList元素组成的数组
SuppressionList子元素:
元素/属性 类型 描述
Id int 禁止列表标识.
Name string 禁止列表名称.
ListType string 禁止列表类型. 可选:

    • Email
    • 短信/彩信
ImportRule string 导入规则. 可选:

    • 只包含Email
    • Email和Domain

示例

请求
GET https://api.esv2.com/v2/Api/SuppressionLists?apiKey=test_api_key1 HTTP/1.1
Accept-Encoding: gzip,deflate
Host: api.esv2.com
Connection: Keep-Alive
User-Agent: Apache-HttpClient/4.1.1 (java 1.5)
OK应答
HTTP/1.1 200 OK
Cache-Control: private
Content-Type: text/xml; charset=utf-8
Server: Microsoft-IIS/7.5
X-AspNetMvc-Version: 3.0
X-AspNet-Version: 4.0.30319
X-Powered-By: ASP.NET
Date: Wed, 21 Feb 2018 13:35:54 GMT
Content-Length: 320

<ApiResponse xmlns:xsd=”http://www.w3.org/2001/XMLSchema” xmlns:xsi=”http://www.w3.org/2001/XMLSchema-instance”>
 <Data>
  <SuppressionLists>
   <SuppressionList>
    <Id>1</Id>
    <Name>clients</Name>
    <ListType>Email</ListType>
    <ImportRule>EmailAndDomain</ImportRule>
   </SuppressionList>
   <SuppressionList>
    <Id>2</Id>
    <Name>friends</Name>
    <ListType>SmsMms</ListType>
   </SuppressionList>
  </SuppressionLists>
 </Data>
</ApiResponse>