调整消息内容

This commit is contained in:
liuwei
2025-04-22 17:00:24 +08:00
parent cd62deb0d3
commit 7961ebdf75
2 changed files with 50 additions and 8 deletions

View File

@@ -0,0 +1,25 @@
import requests
import 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)
if __name__ == '__main__':
get_chatroom_members()