灵动创新 Unimarketing 邮件营销 EDM

/report/{scheduleID}?type=urls

目录

/report/{scheduleID}?type=urls

  • 查询发送任务:打开、链接点击汇总报表

URL

  • {HOST}/services /report/{scheduleID}?type=urls

支持格式

  • XML(Atom)

HTTP 请求方式

  • GET

认证方式

请求数限制

  • true

请求参数

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

请求字符串

返回结果

<?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/">
  <entry>
    <id>http://services.unimarketing.com.cn/link/203129</id>
    <title type="text">$contactName</title>
    <link href="http://services.unimarketing.com.cn/link/203129" rel="self"></link>
    <link href="http://www.unimarketing.com.cn/link/203129" rel="alternate"></link>
    <content type="text">http://xp.unimarketing.cn/uts/landingPages.do?method=previewContent&amp;websiteFormId=18760</content>
    <um:clickCounts>1</um:clickCounts>
    <um:contactCounts>7</um:contactCounts>
  </entry>
  <entry>
    <id>http://services.unimarketing.com.cn/link/203130</id>
    <title type="text">站点表单-添加 触发</title>
    <link href="http://services.unimarketing.com.cn/link/203130" rel="self"></link>
    <link href="http://www.unimarketing.com.cn/link/203130" rel="alternate"></link>
    <content type="text">http://xp.unimarketing.cn/uts/landingPages.do?method=previewContent&amp;websiteFormId=18760</content>
    <um:clickCounts>1</um:clickCounts>
    <um:contactCounts>8</um:contactCounts>
  </entry>
  <entry>
    <id>http://services.unimarketing.com.cn/link/203131</id>
    <title type="text">站点表单-更新</title>
    <link href="http://services.unimarketing.com.cn/link/203131" rel="self"></link>
    <link href="http://www.unimarketing.com.cn/link/203131" rel="alternate"></link>
    <content type="text">http://xp.unimarketing.cn/uts/landingPages.do?method=previewContent&amp;websiteFormId=18759</content>
    <um:clickCounts>1</um:clickCounts>
    <um:contactCounts>7</um:contactCounts>
  </entry>
  <entry>
    <id>http://services.unimarketing.com.cn/link/203132</id>
    <title type="text">站点表单-查找</title>
    <link href="http://services.unimarketing.com.cn/link/203132" rel="self"></link>
    <link href="http://www.unimarketing.com.cn/link/203132" rel="alternate"></link>
    <content type="text">http://xp.unimarketing.cn/uts/landingPages.do
    ?method=previewContent&amp;websiteFormId=18758</content>
    <um:clickCounts>1</um:clickCounts>
    <um:contactCounts>7</um:contactCounts>
  </entry>
  <entry>
    <id>http://services.unimarketing.com.cn/link/203133</id>
    <title type="text">站点表单-uuu</title>
    <link href="http://services.unimarketing.com.cn/link/203133" rel="self"></link>
    <link href="http://www.unimarketing.com.cn/link/203133" rel="alternate"></link>
    <content type="text">http://xp.unimarketing.cn/uts/landingPages.do
    ?method=previewContent&amp;websiteFormId=18757</content>
    <um:clickCounts>1</um:clickCounts>
    <um:contactCounts>12</um:contactCounts>
  </entry>
 
</feed>
 

字段说明

字段名称 意义 数据类型 备注
Id 链接ID Number
title 链接名称 字符串
link 链接ID Number
content 链接URL String
um:contactCounts 点击总联系人数 Number
um:clickCounts 点击数(不重复点击联系人数) Number

调用示例(Java 示例)

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

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;

/**
 * @description 获取跟踪链接情况
 * @author DJ
 * @test 【true】
 */
public class QueryLinkTrackInfo {

	/**
	 * @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 = "7070"; //根据查询所得(必需是有跟踪链接的,并且发送已完成的F 才可以查询)
		Feed feed = apiClient.queryLinkTrackInfo(taskId);
//		System.out.println(feed.toString());
		XmlUtil.displayEncodeXml(feed);
	}
}
                  
 

备注

  • 此接口仅仅支持群发邮件的报表数据,如需要触发邮件报表数据请使用Webhooks接口获取报表明细数据进行统计。
平台介绍
关于我们 | 联系我们 | 行业应用 | 专业术语 | 资源中心 | 隐私声明
© 2022 灵动创新(北京)科技有限公司 - 京ICP备16028763号-1