通过Zepp Life(原小米运动)API实现了一个工具,可以同步用户的运动步数到微信和支付宝。
项目源码地址:
https://github.com/miloce/Zepp-Life-Steps
Demo:https://steps.luozhinet.com/
搭建好后提供API接口,支持POST和GET方式调用
POST方式
POST /api/update-steps
Content-Type: application/json
{
"account": "您的账号",
"password": "您的密码",
"steps": 步数值
}
GET方式
GET /api/update-steps?account=您的账号&password=您的密码&steps=想要的步数
参数说明:
参数名 | 类型 | 必填 | 说明 |
---|---|---|---|
account | string | 是 | Zepp Life 账号(邮箱或手机号) |
password | string | 是 | 账号密码 |
steps | number | 否 | 想要修改的步数(不填则随机生成20000-30000之间的步数) |
示例:
https://steps.luozhinet.com/api/update-steps?account=example@mail.com&password=yourpassword&steps=25000
返回结果:
{ "success": true, "message": "步数修改成功: 25000", "data": { ... } }