R
R
Reality2018-08-03 01:13:24
Google
Reality, 2018-08-03 01:13:24

How to make a simple request to Google Firebase?

Can you please tell me how to make a simple request from a site to Google Firebase in JavaScript?
You need something like a GET request to get data from a cell.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
RomanKudlatov, 2018-08-03
Tester @Aoom

How I did:
var UsersRef = firebase.database().ref("Users/");
varusers;
UsersRef.on("value",function(n){
users = n.val();
})
And after that, the users variable worked as with a normal object, though it takes some time to connect. Therefore, you can’t do anything with users right away. But in any case, I think that my method will push you at least something.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question