python - PYREBASE - 我有一个用于某人的 firebase 应用程序的 APIKey,我想查看他们存储桶中的文件
问题描述
使用 python3 pyrebase 模块:我知道一些文件名,我可以通过 访问它们storage.child()
,但我想获取存储中文件的完整列表。我试过了
import pyrebase
config = {
"apiKey": "apiKey",
"authDomain": "projectId.firebaseapp.com",
"databaseURL": "https://databaseName.firebaseio.com",
"storageBucket": "projectId.appspot.com"
}
firebase = pyrebase.initialize_app(config)
和
storage = firebase.storage()
files = storage.list_files()
但它仍然返回
AttributeError: 'Storage' object has no attribute 'bucket'
同样,我不拥有 firebase 数据库,我仍然拥有 API 密钥,而不是 serviceAccount json 文件。
更新:我已经提取并授权承载密钥。我可以用它来授权登录吗?
解决方案
推荐阅读
- java - Dr. Java 中的多个类
- python - 你能在不调用 save() 的情况下更新模型实例吗?
- c# - UNITY NullReferenceException:对象引用未设置为对象 .txt 文件到 UI 文本的实例
- bootstrap-4 - 在引导程序 4 中,是否支持在标签中包装复选框?
- java - 即使在配置 SSL 属性之后,Spring RMQ 侦听器也始终使用 PLAIN 身份验证
- python-3.x - python 在pyqt中matplotlib图形之间的变化
- c++ - 错误:LNK1104 无法打开文件“pthread.lib”
- google-maps - 来自 Google Maps Flutter 插件的点击回调
- javascript - 如何在 Monaco 编辑器中完成 JQuery 代码?
- javascript - 引导列,如何在溢出时滚动?