public class WxMaOpenApiServiceImpl extends Object implements WxMaOpenApiService
| 构造器和说明 |
|---|
WxMaOpenApiServiceImpl() |
| 限定符和类型 | 方法和说明 |
|---|---|
boolean |
clearQuota()
本接口用于清空公众号/小程序/第三方平台等接口的每日调用接口次数
|
boolean |
clearQuotaByAppSecret()
使用AppSecret重置 API 调用次数
|
WxMiniGetApiQuotaResult |
getApiQuota(String cgiPath)
查询API调用额度
|
WxMiniGetRidInfoResult |
getRidInfo(String rid)
查询rid信息
|
public boolean clearQuota()
throws WxErrorException
WxMaOpenApiServiceclearQuota 在接口中 WxMaOpenApiServiceWxErrorException - the wx error exceptionpublic WxMiniGetApiQuotaResult getApiQuota(String cgiPath) throws WxErrorException
WxMaOpenApiServicegetApiQuota 在接口中 WxMaOpenApiServicecgiPath - api的请求地址,
例如"/cgi-bin/message/custom/send";不要前缀“https://api.weixin.qq.com” ,也不要漏了"/",否则都会76003的报错;WxErrorException - 微信异常public WxMiniGetRidInfoResult getRidInfo(String rid) throws WxErrorException
WxMaOpenApiServicegetRidInfo 在接口中 WxMaOpenApiServicerid - 调用接口报错返回的ridWxErrorException - 微信异常public boolean clearQuotaByAppSecret()
throws WxErrorException
WxMaOpenApiServiceclearQuotaByAppSecret 在接口中 WxMaOpenApiServiceWxErrorException - 微信异常Copyright © 2025. All rights reserved.