Follow these steps to get started:
var serviceAccount = {... Service Account JSON goes here ...};firebase.initializeApp({ credential: firebase.credential.cert(serviceAccount), databaseURL: "https://yourproject.firebaseio.com"});firebase.database().ref("/some_resource").once("value").then(snap=>{ Logger.log(snap.val());});
- Replace {... Service Account JSON goes here ...} with the JSON from the downloaded file- Replace "https://yourproject.firebaseio.com" with your database url.- Replace "/some_resource" with the one that exists in your database.
Click Submit to finish.