- Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathget.py
More file actions
Latest commit
15 lines (11 loc) · 434 Bytes
/
Copy pathget.py
File metadata and controls
15 lines (11 loc) · 434 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
importrequests
url="https://test-for-python-api.firebaseio.com/.json"
resp=requests.get(url)
print(resp.ok)
print(resp.text)
from_json=""
fromfirebaseimportfirebase### pip install git+https://github.com/ozgur/python-firebase
firebase=firebase.FirebaseApplication('https://test-for-python-api.firebaseio.com', None)
result=firebase.get('/categories', from_json)
result2=firebase.get('', from_json)
print(result)