MCPcopy Create free account
hub / github.com/smallfawn/QLScriptPublic / get_access_token

Method get_access_token

daily/notify.py:521–529  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

519 self.ORIGIN = push_config.get("QYWX_ORIGIN")
520
521 def get_access_token(self):
522 url = f"{self.ORIGIN}/cgi-bin/gettoken"
523 values = {
524 "corpid": self.CORPID,
525 "corpsecret": self.CORPSECRET,
526 }
527 req = requests.post(url, params=values)
528 data = json.loads(req.text)
529 return data["access_token"]
530
531 def send_text(self, message, touser="@all"):
532 send_url = (

Callers 2

send_textMethod · 0.95
send_mpnewsMethod · 0.95

Calls 1

postMethod · 0.45

Tested by

no test coverage detected