灵动创新 Unimarketing 邮件营销 EDM

/folder?q=***&start-index=1&max-results=10

目录

/folder?q=***&start-index=1&max-results=10

  • 查询邮件分类

URL

  • {HOST}/services /folder?q=***&start-index=1&max-results=10

支持格式

  • XML(Atom)

HTTP 请求方式

  • GET

认证方式

请求数限制

  • true

请求参数

  是否必选 类型及范围 说明
auth true String BASIC/APIKEY/ OAUTH 三种认证方式信息中的一种
alt true String 通过该参数,你可以改变返回值的格式,目前支持的返回值格式包括:atom(默认) ,暂不支持json
q true String 查询条件 邮件分类名称 (* 号表示匹配 )
start-index true int 开始记录数
max-results true int 最大记录数

请求字符串

返回结果

<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xmlns:gd="http://schemas.google.com/g/2005" xmlns:um="http://www.unimarketing.com.cn/xmlns/" xmlns:openSearch="http://a9.com/-/spec/opensearchrss/1.0/">
  <title type="text">搜索 * 结果</title>
  <openSearch:itemsPerPage>10</openSearch:itemsPerPage>
  <openSearch:startIndex>1</openSearch:startIndex>
  <openSearch:totalResults>5</openSearch:totalResults>
  <entry>
    <id>http://services.unimarketing.com.cn/folder/4791</id>
    <title type="text">我的邮件</title>
    <link href="http://services.unimarketing.com.cn/folder/4791" rel="self"></link>
    <link href="http://www.unimarketing.com.cn/folder/我的邮件" rel="alternate"></link>
  </entry>
  <entry>
    <id>http://services.unimarketing.com.cn/folder/4792</id>
    <title type="text">技术小组</title>
    <link href="http://services.unimarketing.com.cn/folder/4792" rel="self"></link>
    <link href="http://services.unimarketing.com.cn/folder/" rel="related"></link>
    <link href="http://www.unimarketing.com.cn/folder/技术小组" rel="alternate"></link>
  </entry>
  <entry>
    <id>http://services.unimarketing.com.cn/folder/4793</id>
    <title type="text">测试小组</title>
    <link href="http://services.unimarketing.com.cn/folder/4793" rel="self"></link>
    <link href="http://services.unimarketing.com.cn/folder/4792" rel="related"></link>
    <link href="http://www.unimarketing.com.cn/folder/技术小组/测试小组" rel="alternate"></link>
  </entry>
  <entry>
    <id>http://services.unimarketing.com.cn/folder/4794</id>
    <title type="text">广告</title>
    <link href="http://services.unimarketing.com.cn/folder/4794" rel="self"></link>
    <link href="http://services.unimarketing.com.cn/folder/" rel="related"></link>
    <link href="http://www.unimarketing.com.cn/folder/广告" rel="alternate"></link>
  </entry>
  <entry>
    <id>http://services.unimarketing.com.cn/folder/4795</id>
    <title type="text">DJ正式分类_更新</title>
    <link href="http://services.unimarketing.com.cn/folder/4795" rel="self"></link>
    <link href="http://services.unimarketing.com.cn/folder/4794" rel="related"></link>
    <link href="http://www.unimarketing.com.cn/folder/广告/DJ正式分类_更新" rel="alternate"></link>
  </entry>
</feed>

  

字段说明

字段名称 意义 数据类型 备注
id 邮件夹ID Number
title 当前邮件夹名称 Number
<link href="http://services.unimarketing.com.cn/folder/4795" rel="self"></link> 当前邮件夹ID Number
<link href="http://services.unimarketing.com.cn/folder/4794" rel="related"></link> 父邮件夹ID Number
link 该邮件夹与其父邮件夹关系 String

调用示例(Java 示例)

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

import java.util.concurrent.ConcurrentHashMap;

import org.apache.abdera.model.Feed;

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

public class QueryMailClassify {

	/**
	 * @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});
 
		ConcurrentHashMap map = new ConcurrentHashMap();
		map.put("q", "*");
		map.put("start-index", "1");
		map.put("max-results", "10");
		Feed feed = apiClient.queryMailClassify(map);
		XmlUtil.displayEncodeXml(feed);

	}

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