Dies ist ein Memo. Python-Seite import requests
res = requests.get('https://hogehoge.org/fugafuga.json)
data = res.json()
self.memory.raiseEvent("myapp/data", json.dumps(data).encode("utf-8"))
Pass as, im empfangenden Javascript, $.subscribeToALMemoryEvent("myapp/data", function (data) { data = JSON.parse(data); console.log(data); }); Also OK !!
Recommended Posts