灵动创新 Unimarketing 邮件营销 EDM

schedule/{scheduleID}?cancel

目录

schedule/{scheduleID}?cancel

  • 取消发送任务

URL

  • {HOST}/services schedule/{scheduleID}?cancel

支持格式

  • XML(Atom)

HTTP 请求方式

  • PUT

认证方式

请求数限制

  • true

请求参数

字段名称 是否必选 字段类型 说明
auth String BASIC/APIKEY/ OAUTH 三种认证方式信息中的一种
alt String 通过该参数,你可以改变返回值的格式,目前支持的返回值格式包括:atom(默认) ,暂不支持json
sendTaskId String 发送任务ID

请求字符串

返回结果

201  表示取消成功       
                           

调用示例(Java 示例)

  
package cn.unisoftware.api.client.example.sendTask;

import cn.unisoftware.api.client.ApiClient;
import cn.unisoftware.api.client.utils.AtomConstants;

/**
 * @Description 取消发送任务
 * @author DJ
 *
 */
public class CancelSendTask {

	/**
	 * @param args
	 * @throws Exception 
	 */
	public static void main(String[] args) throws Exception {
		ApiClient apiClient = ApiClient.getApiClient(false,ApiClient.AuthMode.APIKEY, new String[]{AtomConstants.apikey,AtomConstants.apisecret});
		String taskId = "7110"; //根据QuerySendTask 查询所得
		String res = apiClient.cancelSendTask(taskId);
		System.out.println(res);
	}

}
  
         
 
平台介绍
关于我们 | 联系我们 | 行业应用 | 专业术语 | 资源中心 | 隐私声明
© 2022 灵动创新(北京)科技有限公司 - 京ICP备16028763号-1