|
@@ -1890,6 +1890,18 @@ class APIMgr():
|
|
|
}
|
|
|
response = self.s.post(f"{cfg.target_host}/jyapi/biService/call", headers=headers, json=json)
|
|
|
return response
|
|
|
+ #创建会话
|
|
|
+ def create_chatSession(self):
|
|
|
+ headers = GSTORE['headers']
|
|
|
+ json = {
|
|
|
+ "userType": 2,
|
|
|
+ "msgType": 4,
|
|
|
+ "receiveEntId": "465d475c52"
|
|
|
+ }
|
|
|
+ response = self.s.post(f"{cfg.target_host}/jyapi/message/createChatSession", headers=headers, json=json)
|
|
|
+ return response
|
|
|
+
|
|
|
+
|
|
|
|
|
|
apimgr = APIMgr()
|
|
|
|