想要在HomePage上配置51LA的信息展示,经过努力找到一个可用接口可以提供相关数据。本文将详细讲解如何在HomePage中进行配置并展示51LA网站监控的相关信息。
打开HomePage的 service.yaml 文件,填写以下内容并修改其中的参数数据为自己的内容
- 51·LA:
icon: https://sdk.51.la/icon/3-1.png
description: 网站数据统计与营销分析平台
href: "https://v6.51.la/land/xxxxxx"
siteMonitor: https://v6.51.la/api/report/overview/title?comId=id
ping: https://v6.51.la/api/report/overview/title?comId=id
widget:
type: customapi
url: https://v6.51.la/api/report/overview/title?comId=id
method: GET
headers:
Cookie: cookie
mappings:
- field:
bean: curUv
label: 今日UV
- field:
bean: curPv
label: 今日PV
- field:
bean: monthPv
label: 本月浏览数
- field:
bean: totalPv
label: 总访问量
https://blog.xindu.site 替换成你自己的站点地址即可comId:请求接口
comId参数需要自己去生成
comId 参数后面的值即可