短信通道暂停和继续Newsletter

Pause or resume newsletter 暂停和继续Newsletter

所有状态为 “InProgress”(进行中)的Newsletter都可以被暂停. 只有状态为 “Paused”(暂停)的Newsletters可以被继续.

请求数据格式

元素/属性 类型 描述
ApiKey string 客户Api Key, 用于认证. 必填.
Action string 选则哪种操作. 必填. 有效值为:

    • PauseMessage
    • ResumeMessage

应答

不管状态如何变化,data元素的返回值将恒为0.

应答中Data元素:
元素/属性 类型 描述
(Data element content) int 将恒为0

示例

重启暂停的NEWSLETTER
请求:
PUT https://api.esv2.com/v2/Api/SmsMmsNewsletters/1000 HTTP/1.1 
Accept-Encoding: gzip,deflate 
Content-Type: text/xml;charset=UTF-8
Host: api.esv2.com
 <ApiRequest xmlns:xsi=”http://www.w3.org/2001/XMLSchema-instance” xmlns:xs=”http://www.w3.org/2001/XMLSchema”>
   <ApiKey>2OAEcpz0Rwv3Mhc9nTQK</ApiKey>
   <Action>ResumeMessage</Action>
 </ApiRequest>
应答:
HTTP/1.1 201 Created
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: Tue, 27 Mar 2012 13:28:01 GMT
Content-Length: 149

<ApiResponse xmlns:xsd=”http://www.w3.org/2001/XMLSchema” xmlns:xsi=”http://www.w3.org/2001/XMLSchema-instance”>
 <Data>0</Data>
</ApiResponse>