Firebase.readValue()

Read data from a specific firebase location, such as "/users/".

This will return your data as a JSON object. To return this to a String format, please use the .JSONtoString machine included in this machinepack. You can find more information on which read method to use here: https://www.firebase.com/docs/web/guide/retrieving-data.html

Usage

Hover over inputs/exits for more info.

var Firebase = require('machinepack-firebase');


// Read data from a specific firebase location, such as "/users/".

Firebase.readValue({

firebaseURL: 'your-firebase-database.firebaseio.com/users/',

}).exec({

// An unexpected error occurred.

error: function (err) {

 

},

// OK.

success: function (result) {

 

},

});

Inputs

firebaseURL required

The reference URL for your Firebase dataset.

'your-firebase-database.firebaseio.com/users/'

Exits

error

An unexpected error occurred.

success

OK.

'{ "User 1": {"email": "user@gmail.com", "password": "password123"}}'