企业🤖AI智能体构建引擎,智能编排和调试,一键部署,支持私有化部署方案 广告
## 一、概述 对当前卡片执行操作; ## 二、接口 ~~~[api] post:/share/operate/card *string:rayOauthServerAppId=默认值#头部参数,应用的appId,联系厂商获取 *string:rayOauthServerTimeStamp=默认值#头部参数,当前时间戳,参考前述算法 *string:rayOauthServerSignature=默认值#头部参数,签名,参考前述算法 *string:userCode=默认值#用户码 *int:operateType=默认值#操作类型,1为移动重置;2为联通解锁复机 <<< success { "status": 200, "code": 200, "message": "异步操作,请求标识为[24]已经被记录", "bizCode": 0, "timestamp": "1647937972369" } <<< error { "status": 200, "code": 1006, "message": "当前请求appId无效,请确认是否存在并启用", "infoCode": "log202203221515192df", "bizCode": 0, "timestamp": "1647933319987" } ~~~ ## 三、参考代码 ``` Log4jV2Util.initLog4jV2TestEnv(); String hostUrl = "http://{hosturl}"; String apiUrl = "/common/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); ```