Skip to content

Basic libray of methods for Unity to acesss firebase using its REST API. Has methods to code and decode firebase data json.

Notifications You must be signed in to change notification settings

burningman2k20/UnityFirebaseRestAPI

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 

Repository files navigation

UnityFirebaseRestAPI

Basic libray of methods for Unity to acesss firebase using its REST API. Has methods to code and decode firebase data json. Best part is EVERYTHING is done with Rest API. No firebase sdk needed. Only Librarys you need are Newtonsoft JSON .NET, which is freely available and updated, and RestClient, which is freely available on the Unity Asset Store.

Tested with Unity 2022.3.21f

NewSignIn method doesnt seem to be registering the sign in. other SignInWithEmailPassword and corresponding SignIn method does. Not sure why. Will be looking into it

Methods included

SignIn() SignIn() & SignInWithEmailPassword()

SignInWithEmailPassword(string email, string password) WOrking for authorizing sign in

NewSignIn(string email, string password, SignInCallback callback, bool signup = false) Not Working at the moment

Used to sign in to firebase

GetDoc()

NewGetDoc(string path, string doc, GetDocCallback callback)

Gets a single document from firebase, returns as json data to be converted to Data Structure of your choosing

GetDocs()

GetDocs(string path, GetDocIDsCallback callback)

Gets list of documents from firebase, returns a String List of documents in specified path

WriteDoc()

NewWriteDoc(object data, string path, string docId, PostDocCallback callback)

Creates or Updates specified document using past data.

About

Basic libray of methods for Unity to acesss firebase using its REST API. Has methods to code and decode firebase data json.

Resources

Stars

Watchers

Forks

Languages