|
@@ -2024,6 +2024,28 @@ class APIMgr():
|
|
|
}
|
|
|
response = self.s.post(f"{cfg.target_host}/jyapi/message/conversationList", headers=headers, json=json)
|
|
|
return response
|
|
|
+ #推送设置修改
|
|
|
+ def setpushset(self):
|
|
|
+ headers = GSTORE['headers']
|
|
|
+ json = {
|
|
|
+ "item": "o_subset",
|
|
|
+ "setType": "a_times",
|
|
|
+ "ratemode": 2,
|
|
|
+ "times": [
|
|
|
+ "09:00",
|
|
|
+ "14:00"
|
|
|
+ ]
|
|
|
+ }
|
|
|
+ response = self.s.post(f"{cfg.target_host}/jyapi/jybx/subscribe/setPushSet", headers=headers, json=json)
|
|
|
+ return response
|
|
|
+ #推送用户信息设置
|
|
|
+ def user_information_set(self):
|
|
|
+ headers = GSTORE['headers']
|
|
|
+ json = {
|
|
|
+ "mail": "2011537664@qq.com"
|
|
|
+ }
|
|
|
+ response = self.s.post(f"{cfg.target_host}/jyapi/jybx/subscribe/setUser", headers=headers, json=json)
|
|
|
+ return response
|
|
|
|
|
|
|
|
|
|