优化一下message
This commit is contained in:
@@ -1,25 +1,40 @@
|
||||
import requests
|
||||
import json
|
||||
|
||||
base_url = "http://192.168.2.240:2531/v2/api"
|
||||
|
||||
headers = {
|
||||
'X-GEWE-TOKEN': 'cb43f52db27e4a56bb6ec7da54373582',
|
||||
'Content-Type': 'application/json'
|
||||
}
|
||||
def get_chatroom_members():
|
||||
url = "/group/getChatroomMemberList"
|
||||
|
||||
base_url = "http://192.168.2.240:2531/v2/api"
|
||||
payload = json.dumps({
|
||||
"appId": "wx_3BC6eSHGE5xEm_hH3__7c",
|
||||
"chatroomId": "52418238895@chatroom"
|
||||
|
||||
})
|
||||
headers = {
|
||||
'X-GEWE-TOKEN': 'cb43f52db27e4a56bb6ec7da54373582',
|
||||
'Content-Type': 'application/json'
|
||||
}
|
||||
|
||||
response = requests.request("POST", base_url + url, headers=headers, data=payload)
|
||||
|
||||
print(response.text)
|
||||
|
||||
def revoke_msg():
|
||||
|
||||
url = "/message/revokeMsg"
|
||||
|
||||
payload = json.dumps({
|
||||
"appId": "{{appid}}",
|
||||
"toWxid": "34757816141@chatroom",
|
||||
"msgId": "769533801",
|
||||
"newMsgId": "5271007655758710001",
|
||||
"createTime": "1704163145"
|
||||
})
|
||||
|
||||
response = requests.request("POST", base_url+url, headers=headers, data=payload)
|
||||
|
||||
print(response.text)
|
||||
|
||||
if __name__ == '__main__':
|
||||
get_chatroom_members()
|
||||
Reference in New Issue
Block a user