赞
踩
import json
import requests
from requests_toolbelt import MultipartEncoder
class Send_feishu_msg:
# 应用凭证,获取方式查看上面的步骤
app_id = "cli_xxxxxxxxxxxxxxx"
app_secret = "nEkQ8A2x13_xxxxxxxxxxx"
# 机器人webhook
chatGPT_url = 'https://open.feishu.cn/open-apis/bot/v2/hook/xxxxxxxxxxxxx'
headers = {
"Content-Type": "application/json; charset=utf-8",
}
json_data = {
"config": {
"wide_screen_mode": True
},
"header": {
"template": "green",
"title": {
"tag": "plain_text",
"content": "声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/Gausst松鼠会/article/detail/71411
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。