To set up firebase on Edison we are going to use python firebase library.
1. Install the python-firebase library from the installation page, if you haven't already. 2. http://ozgur.github.io/python-firebase/ contains some useful examples on reading, writing and deleting data with Firebase. 3. Create a firebaseDemo.py file and add the following code. from firebase import firebase import json as simplejson firebase = firebase.FirebaseApplication('https://<YOUR_DOMAIN>.firebaseio.com',None) result = firebase.get('',None) print result name = {'Edison':10} #data = json.dumps(name) post = firebase.post('',name) print post Insert <YOUR_DOMAIN> name into the above, by creating an account on firebase.com as below and filling up crossed out section.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |