最近的营销推广

最近的营销推广

用户可以使用我们的API身份验证令牌查看最近的营销推广活动。

请求 URL:

XML/ JSON

https://campaigns.zoho.com.cn/api/recentcampaigns

请求类型: Get/ Post

参数列表:

参数

数据类型

描述

authtoken*
scope*

字符串
String

API 身份验证令牌
CampaignsAPI

version

字符串

这将基于当前API版本获取响应。

resfmt

字符串

XML (或) JSON

sort

字符串

asc/desc

fromindex

 

数字

默认值:1

range

 

数字

数字

 

status

字符串

all|all campaigns|drafts|scheduled|inprogress|sent|stopped| canceled|tobereviewed|reviewed|paused|intesting

 

* - 必填参数

示例请求:

XML/ JSON

https://campaigns.zoho.com.cn/api/recentcampaigns?authtoken=[API Authentication Token]&scope=[CampaignsAPI]&sort=[asc/desc]&fromindex=[number]&range=[number]&status=[all|all campaigns|drafts|scheduled|inprogress|sent|stopped|canceled|tobereviewed|reviewed|paused|intesting]

示例响应:

我们的API响应将以XML或JSON格式让您了解以下内容。

XML 格式:

<response uri="https://campaigns.zoho.com.cn/api/recentcampaigns" version="1">

<status>success</status>

<code>0</code>

<range>5</range>

<status>All</status>

<fromindex>1</fromindex>

<recent-campaigns>

<campaign no="1">

<fl val="campaign_key">f70c4878c4a47169407e63917ad24497</fl>

<fl val="campaign_name">1222</fl>

<fl val="created_date_string">19 Aug 2013, 11:26 AM</fl>

<fl val="campaign_status">Draft</fl>

<fl val="created_time">1376920587000</fl>

<fl val="campaign_preview">

campaigns.zoho.com/EmailDisplayAction.do?&campaignId=303000023454038

</fl>

</campaign>

<campaign no="2">

<fl val="campaign_key">f70c4878c4a47169cff121e4406fc65f</fl>

<fl val="campaign_name">4654</fl>

<fl val="created_date_string">16 Aug 2013, 08:03 PM</fl>

<fl val="campaign_status">Draft</fl>

<fl val="created_time">1376692411000</fl>

<fl val="campaign_preview">

campaigns.zoho.com/EmailDisplayAction.do?&campaignId=303000023454002

</fl>

</campaign>

<campaign no="3">

<fl val="campaign_key">f70c4878c4a4716956b069688d2a58be</fl>

<fl val="campaign_name">outlok</fl>

<fl val="created_date_string">16 Aug 2013, 09:23 PM</fl>

<fl val="campaign_status">Draft</fl>

<fl val="created_time">1376697194000</fl>

<fl val="campaign_preview">

campaigns.zoho.com/EmailDisplayAction.do?&campaignId=303000023453108

</fl>

</campaign>

<campaign no="4">

<fl val="campaign_key">f70c4878c4a4716978fcc0ef91b933a3</fl>

<fl val="campaign_name">t1</fl>

<fl val="created_date_string">16 Aug 2013, 09:12 PM</fl>

<fl val="campaign_status">Draft</fl>

<fl val="created_time">1376696522000</fl>

<fl val="campaign_preview">

campaigns.zoho.com/EmailDisplayAction.do?&campaignId=303000023453086

</fl>

</campaign>

<campaign no="5">

<fl val="campaign_key">f70c4878c4a47169613e476aed11106d</fl>

<fl val="campaign_name">21313</fl>

<fl val="created_date_string">16 Aug 2013, 09:04 PM</fl>

<fl val="campaign_status">Draft</fl>

<fl val="created_time">1376696048000</fl>

<fl val="campaign_preview">

campaigns.zoho.com/EmailDisplayAction.do?&campaignId=303000023453072

</fl>

</campaign>

</recent-campaigns>

</response>

JSON 格式:

{"requestdetails":"{range=5, status=All, fromindex=1}","status":"success","recent_campaigns":[{"campaign_key":"f70c4878c4a47169407e63917ad24497","campaign_name":"1222","created_date_string":"19 Aug 2013, 11:26 AM","campaign_status":"Draft","created_time":"1376920587000","campaign_preview":"campaigns.zoho.com/EmailDisplayAction.do?&campaignId=303000023454038"},{"campaign_key":"f70c4878c4a47169cff121e4406fc65f","campaign_name":"4654","created_date_string":"16 Aug 2013, 08:03 PM","campaign_status":"Draft","created_time":"1376692411000","campaign_preview":"campaigns.zoho.com/EmailDisplayAction.do?&campaignId=303000023454002"},{"campaign_key":"f70c4878c4a4716956b069688d2a58be","campaign_name":"outlok","created_date_string":"16 Aug 2013, 09:23 PM","campaign_status":"Draft","created_time":"1376697194000","campaign_preview":"campaigns.zoho.com/EmailDisplayAction.do?&campaignId=303000023453108"},{"campaign_key":"f70c4878c4a4716978fcc0ef91b933a3","campaign_name":"t1","created_date_string":"16 Aug 2013, 09:12 PM","campaign_status":"Draft","created_time":"1376696522000","campaign_preview":"campaigns.zoho.com/EmailDisplayAction.do?&campaignId=303000023453086"},{"campaign_key":"f70c4878c4a47169613e476aed11106d","campaign_name":"21313","created_date_string":"16 Aug 2013, 09:04 PM","campaign_status":"Draft","created_time":"1376696048000","campaign_preview":"campaigns.zoho.com/EmailDisplayAction.do?&campaignId=303000023453072"}],"code":"0","uri":"/api/recentcampaigns","version":"1"}

可能出现的错误情况

错误代码 描述
2206营销推广活动已被删除。
6101没有发起任何营销推广活动。

如果上面没有列出你遇到的错误代码,请点击 这里

还没有找到您需要的内容?

请发送邮件给我们:support@zohocorp.com.cn