import requests
import json
header = {
'Content-Type': 'application/json'
}
body = {
"text": {
"content": "TEST, 工作日定时通知测试",
},
"msgtype": "text",
"at": {
"isAtAll": False
}
}
url = 'https://oapi.dingtalk.com/robot/send?access_token=e865afe06e5679f606f1a8ab37ac7c6db66796079ba41421a22cf48b941e6877'
res = requests.request("POST", url, headers=header, data=json.dumps(body))
print(res.json())