ThinkChat2.0新版上线,更智能更精彩,支持会话、画图、阅读、搜索等,送10W Token,即刻开启你的AI之旅 广告
## 一、概述 对当前卡片执行操作; ## 二、接口 ~~~[api] post:/pool/operate/card *string:rayOauthServerAppId=默认值#头部参数,应用的appId,联系厂商获取 *string:rayOauthServerTimeStamp=默认值#头部参数,当前时间戳,参考前述算法 *string:rayOauthServerSignature=默认值#头部参数,签名,参考前述算法 *string:userCode=默认值#用户码 *int:operateType=默认值#操作类型,1为重置,2为复机;3为停机 <<< success { "status": 200, "code": 200, "message": "操作成功", "bizCode": 0, "timestamp": "1647940675077", "result": true } <<< error { "status": 200, "code": 1006, "message": "当前请求appId无效,请确认是否存在并启用", "infoCode": "log202203221515192df", "bizCode": 0, "timestamp": "1647933319987" } ~~~ ## 三、参考代码 ``` Log4jV2Util.initLog4jV2TestEnv(); String hostUrl = "http://{hosturl}"; String apiUrl = "/pool/operate/card"; String appId = "ray40c9903c6"; String appSecret = "46bacebf-f63c-41cc-b29c-5812994a5e83"; Map<String, String> paramap = new HashMap(); paramap.put("userCode", "1470046236"); paramap.put("operateType", "1"); String result = OauthCaller.call(hostUrl, apiUrl, appId, appSecret, paramap); Logger logger = LoggerFactory.getLogger(OauthClientTest.class); logger.warn(result); ```