简要描述:

  • 收入统计接口

请求域名:

  • http://xx.com

请求URL:

GET/获取推广中心数据:finance.income-page.fans-charts

参数:

参数名 是否必须 类型 说明
fans_type int 统计图数据类型:1粉丝转化,不传或者传其他返回粉丝裂变数据

返回示例:

正确时返回:

粉丝裂变
{
	"result": 1,
	"msg": "ok",
	"data": {
		"totalFans": 0,
		"maxHistory": null,
		"totalFans15": 0,
		"max15": null,
		"x_axis": [
			"07/16",
			"07/17",
			"07/18",
			"07/19",
			"07/20",
			"07/21",
			"07/22",
			"07/23",
			"07/24",
			"07/25",
			"07/26",
			"07/27",
			"07/28",
			"07/29",
			"07/30"
		],
		"totalFansSeries": [
			0,
			0,
			0,
			0,
			0,
			0,
			0,
			0,
			0,
			0,
			0,
			0,
			0,
			0,
			0
		],
		"fansNewSeries": [
			0,
			0,
			0,
			0,
			0,
			0,
			0,
			0,
			0,
			0,
			0,
			0,
			0,
			0,
			0
		]
	}
}
粉丝转化
{
	"result": 1,
	"msg": "ok",
	"data": {
		"totalOrderCount": 0,
		"maxOrderCount": null,
		"totalOrderPrice": 0,
		"maxOrderPrice": null,
		"x_axis": [
			"07/16",
			"07/17",
			"07/18",
			"07/19",
			"07/20",
			"07/21",
			"07/22",
			"07/23",
			"07/24",
			"07/25",
			"07/26",
			"07/27",
			"07/28",
			"07/29",
			"07/30"
		],
		"orderCountSeries": [
			0,
			0,
			0,
			0,
			0,
			0,
			0,
			0,
			0,
			0,
			0,
			0,
			0,
			0,
			0
		],
		"orderPriceSeries": [
			0,
			0,
			0,
			0,
			0,
			0,
			0,
			0,
			0,
			0,
			0,
			0,
			0,
			0,
			0
		]
	}
}

错误时返回:

  {
    "result": 0,
    "msg": "获取失败"
  }

返回参数说明:

(粉丝裂变)参数名 类型 说明
totalFans int 粉丝总数
maxHistory int 历史单日最高
totalFans15 float 15日粉丝总数
max15 float 15日内单日最高
x_axis array 统计图x轴数据
totalFansSeries array 统计图粉丝总数Y周数据
fansNewSeries array 统计图单日新增粉丝Y周数据
(粉丝转化)参数名 类型 说明
totalOrderCount int 推广订单总数
maxOrderCount int 单日最高订单数
totalOrderPrice float 推广订单总额
maxOrderPrice float 单日最高订单销售额
x_axis array 统计图x轴数据
orderCountSeries array 统计图订单数Y周数据
orderPriceSeries array 统计图订单金额Y周数据

备注:

  • 更多返回错误代码请看首页的错误代码描述