Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Export firebase

I was wondering if it is possible to export firebase data (perhaps as a JSON object) in frequent "cycles". The main reason I'm asking this is because I would like to capture the data at specific points of time in order to perform a range of analytics upon them / identify specific patterns. I'm interested in any operations / methods that are part of the Firebase API - maybe some kind of web hook, or other workarounds that would enable me to do this!

Any suggestions would be greatly appreciated as I could not find anything on the web / docs (maybe I've over read it?).

Thanks, Alex

like image 794
Alex Loiz Avatar asked Feb 26 '13 00:02

Alex Loiz


1 Answers

Firebase has a full-featured REST API, so the simplest thing to do is just poll the REST API on a regular basis. REST API docs are here: https://www.firebase.com/docs/rest-api-quickstart.html

You can also get full access to your Firebase data using the Node.js client. This allows you to attach callbacks to your data and act on changes immediately when they occur from your own server: https://www.firebase.com/docs/nodejs-quickstart.html

like image 80
Andrew Lee Avatar answered Oct 30 '22 20:10

Andrew Lee