You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
392 B
17 lines
392 B
import firebase_admin
|
|
from firebase_admin import credentials
|
|
from firebase_admin import firestore
|
|
|
|
# Use a service account
|
|
cred = credentials.Certificate('./hackku-272b6e79b2a9.json')
|
|
firebase_admin.initialize_app(cred)
|
|
|
|
db = firestore.client()
|
|
|
|
doc_ref_lot1 = db.collection(u'Lot1')
|
|
|
|
stalls = doc_ref_lot1.get()
|
|
|
|
for stall in stalls:
|
|
print(u'{} => {}'.format(stall.id, stall.to_dict()))
|