Skip to content
A C# client for Firebase.io
Branch: master
Clone or download
Latest commit 3600802 Jul 30, 2015
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
img
samples
src 2.0.2 alpha package Jul 30, 2015
.gitattributes POST returns the Json, not the key. Patch returns JSON. Mar 26, 2014
.gitignore removing nupkgs and ignoring Mar 28, 2014
LICENSE.txt Adding nuspec for FirebaseSharp Mar 26, 2014
readme.md latest package details Jul 27, 2015

readme.md

FirebaseSharp 2.0

A (new) Firebase API for .NET.

This is the alpha FirebaseSharp 2.0 library - some things are broken, other are missing. There are many happy accidents that seem to work.

Usage

Create the FirebaseApp object

// this is IDisposable ... please clean up when done!
FirebaseApp app = new FirebaseApp(new Uri("https://dinosaur-facts.firebaseio.com/") /*, <auth token> */);

Subscribe to a location

var scoresRef = app.Child("scores");

Perform a query

scoresRef.OrderByValue()
         .LimitToLast(3)
         .On("value", (snapshot, child, context) => {
  foreach (var data in snapshot.Children) {
    Console.WriteLine("The {0} dinosaur\'s score is {1}",
                        data.Key, data.Value<int>());
   }
});
You can’t perform that action at this time.