MCPcopy Create free account
hub / github.com/TechXueXi/TechXueXi / ftmsgsend

Method ftmsgsend

SourcePackages/pdlearn/pluspush.py:8–19  ·  view source on GitHub ↗
(self, msgurl)

Source from the content-addressed store, hash-verified

6 self.topic = topic
7
8 def ftmsgsend(self, msgurl):
9
10 url="http://www.pushplus.plus/send"
11 headers = {"Content-Type": "application/json"} # 定义数据类型
12 data = {
13 "token":self.token,
14 "title": "学 xi 强 guo ",
15 "content":"<img src='"+msgurl+"'/>"
16 }
17
18 res = requests.post(url, data=json.dumps(data), headers=headers) # 发送post请求
19 print(res.text)
20 def fttext(self,text):
21 url="http://www.pushplus.plus/send"
22 headers = {"Content-Type": "application/json"} # 定义数据类型

Callers 1

send_qrbase64Function · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected