这是我的数据库规则的样子:
service cloud.firestore {
match /databases/{database}/documents {
match /{document=**} {
allow read, write;
}
}
}
这是我的服务器代码:
import firebase_admin
from firebase_admin import credentials
from firebase_admin import db
cred = credentials.Certificate('gitvis-blabla-firebase-adminsdk-c3f55-4fk2b82716.json')
firebase_admin.initialize_app(cred, {
'databaseURL': 'https://gitvis-blabla.firebaseio.com'
})
ref = db.reference('users')
print(ref.get())
没有