使用CountAPI统计使用次数

By the100s at 2021-10-16 • 0人收藏 • 879人看过
//HTML转文本
//mod by aardio 范例:HTML转文本
import console;
import inet.http;
//namespace是随意定义的,只要重复,不需要前往countapi进行注册。
var html = inet.http().get("https://api.countapi.xyz/hit/namespace/key")
console.varDump(html)

tab=web.json.parse(html)
console.varDump(tab)
console.log( tab["value"] )

html=""
html=inet.http().get("https://api.countapi.xyz/hit/myappname_by_the100s5/key")
tab=web.json.parse(html)

console.log("“我的软件使用计数”:",tab["value"] )

console.pause();

QQ截图20211016191852.png

1 个回复 | 最后更新于 2021-10-17
2021-10-17   #1

好的

登录后方可回帖

登 录
信息栏
 私人小站

本站域名

ChengXu.XYZ

投诉联系:  popdes@126.com



快速上位机开发学习,本站主要记录了学习过程中遇到的问题和解决办法及上位机代码分享

这里主要专注于学习交流和经验分享.
纯私人站,当笔记本用的,学到哪写到哪.
如果侵权,联系 Popdes@126.com

友情链接
Aardio官方
Aardio资源网


才仁机械


网站地图SiteMap

Loading...