import requests
import json
header = {
'Content-Type': 'application/json'
}
body = {
"text": {
"content": "TEST, 工作日定時(shí)通知測(cè)試",
},
"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())