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

Method fttext

SourcePackages/pdlearn/pluspush.py:20–31  ·  view source on GitHub ↗
(self,text)

Source from the content-addressed store, hash-verified

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"} # 定义数据类型
23 data = {
24 "token":self.token,
25 "title": "学 xi 强 guo ",
26 "content": text,
27 "topic": self.topic
28 }
29
30 res = requests.post(url, data=json.dumps(data), headers=headers) # 发送post请求
31 print(res.text)

Callers 1

pushprintFunction · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected