微信小程序
使用AppSecret重置 API 调用次数
# 使用AppSecret重置 API 调用次数
接口应在服务器端调用,详细说明参见服务端API。
# 接口说明
# 接口英文名
clearQuotaByAppSecret
# 功能描述
本接口用于清空公众号/小程序等接口的每日调用接口次数
# 注意事项
1、该接口通过appsecret调用,解决了accesss_token耗尽无法调用重置 API 调用次数 的情况
2、每个账号每月使用重置 API 调用次数 与本接口共10次清零操作机会,清零生效一次即用掉一次机会;
3、由于指标计算方法或统计时间差异,实时调用量数据可能会出现误差,一般在1%以内
4、该接口仅支持POST调用
5、如果要清除getComponentAccessToken调用次数或者以服务商身份代商家清除公众号或者小程序调用次数,则需要使用clearComponentQuotaByAppSecret
# 调用方式
# HTTPS 调用
POST https://api.weixin.qq.com/cgi-bin/clear_quota/v2
# 请求参数
# 返回参数
# 调用示例
示例说明: post请求
# 请求数据示例
POST https://api.weixin.qq.com/cgi-bin/clear_quota/v2?appid=wx888888888888&appsecret=xxxxxxxxxxxxxxxxxxxxxxxx
# 返回数据示例
{
"errcode": 0,
"errmsg": "ok"
}