💎一站式轻松地调用各大LLM模型接口,支持GPT4、智谱、星火、月之暗面及文生图 广告
## 一、概述 查询当前卡池参数; ## 二、接口 ~~~[api] post:/pool/query/pool *string:rayOauthServerAppId=默认值#头部参数,应用的appId,联系厂商获取 *string:rayOauthServerTimeStamp=默认值#头部参数,当前时间戳,参考前述算法 *string:rayOauthServerSignature=默认值#头部参数,签名,参考前述算法 <<< success { "status": 200, "code": 200, "message": "操作成功", "bizCode": 0, "timestamp": "1647940193748", "result": { "cardVirtualPool": { "poolName": "14723125865", "singleCardFlow": 205824.0, "totalCardAmount": 13, "activatedCardAmount": 12 } } } <<< error { "status": 200, "code": 1006, "message": "当前请求appId无效,请确认是否存在并启用", "infoCode": "log202203221515192df", "bizCode": 0, "timestamp": "1647933319987" } ~~~ ## 三、关键字段 | 字段名称 || 说明 | | --- | --- |---| |statu||状态 200:成功| |code||状态码 200:成功| |message||提示消息| |bizCode||0| |timestamp||时间戳| |result|cardVirtualPool|返回结果| || poolName| 卡池名称 | || singleCardFlow| 单卡流量,单位为kb | || totalCardAmount| 总卡数 | || activatedCardAmount| 激活卡数 | ## 四、参考代码 ``` Log4jV2Util.initLog4jV2TestEnv(); String hostUrl = "http://{hosturl}"; String apiUrl = "/pool/query/pool"; String appId = "ray40c9903c6"; String appSecret = "46bacebf-f63c-41cc-b29c-5812994a5e83"; Map<String, String> paramap = new HashMap(); String result = OauthCaller.call(hostUrl, apiUrl, appId, appSecret, paramap); Logger logger = LoggerFactory.getLogger(OauthClientTest.class); logger.warn(result); ```