问题描述
借助Firebase的JS API,我可以使用各种事件.(值;已添加子项;已更改子项;已删除子项;已移动子项.)
with the JS api of Firebase I can use various events. (Value; Child Added; Child Changed; Child Removed; Child Moved.)
我想以某种方式从Python回调相同的事件.Python API使用Firebase的REST API.因此,可以通过REST检测子集中是否已更改/添加/等.
I would like to have callbacks to the same events somehow from Python. The Python api uses the REST API of Firebase. So, it is possible to detect if a child has changed / added / etc.. in a collection, via REST?
推荐答案
JS到Python有第三方的有限端口: https://github.com/abeisgreat/python-firebasin
There is a third-party, limited port of the JS API to Python: https://github.com/abeisgreat/python-firebasin
因此,通过这种方法,您可以获得一些有限的事件功能,但不包括查询和其他高级功能.
So you can get some limited event functionality, excluding queries and other advanced features, via this approach.
这篇关于我可以在Firebase的REST API中使用事件吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!