All Projects → RomainVialard → Firebaseapp

RomainVialard / Firebaseapp

Licence: apache-2.0
Google Apps Script binding for Firebase Realtime Database

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to Firebaseapp

Firebase Esp32
ESP32 Firebase RTDB Arduino Library
Stars: ✭ 204 (+257.89%)
Mutual labels:  firebase, firebase-realtime-database
Angularfire Lite
⚡️ Lightweight library to use Firebase API 🔥 with Angular
Stars: ✭ 245 (+329.82%)
Mutual labels:  firebase, firebase-realtime-database
Firebase Authentication Dotnet
C# library for Firebase Authentication
Stars: ✭ 222 (+289.47%)
Mutual labels:  firebase, firebase-realtime-database
React Firebase Hooks
React Hooks for Firebase.
Stars: ✭ 2,227 (+3807.02%)
Mutual labels:  firebase, firebase-realtime-database
Laravel Firebase
A Laravel package for the Firebase PHP Admin SDK
Stars: ✭ 369 (+547.37%)
Mutual labels:  firebase, firebase-realtime-database
Rxfirebase
RxJava binding APIs for Firebase.
Stars: ✭ 143 (+150.88%)
Mutual labels:  firebase, firebase-realtime-database
Kotlin Firebase Group Chat
Group and OneonOne chat using firebase built in Kotlin similar to whatsapp.
Stars: ✭ 44 (-22.81%)
Mutual labels:  firebase, firebase-realtime-database
Firebase Android Sdk
Firebase Android SDK
Stars: ✭ 1,704 (+2889.47%)
Mutual labels:  firebase, firebase-realtime-database
React Gatsby Firebase Authentication
🐣🔥Starter Project / Boilerplate for Authentication with Firebase and plain React in Gatsby.js
Stars: ✭ 356 (+524.56%)
Mutual labels:  firebase, firebase-realtime-database
Firebase Js Sdk
Firebase Javascript SDK
Stars: ✭ 3,844 (+6643.86%)
Mutual labels:  firebase, firebase-realtime-database
Combinefirebase
Combine wrapper on Google's iOS Firebase library.
Stars: ✭ 126 (+121.05%)
Mutual labels:  firebase, firebase-realtime-database
Chatapp
Chat App with all functionality private chat, contacts, friends request, find friends,for profile settings image cropper functionality, settings, logout also send text, image and all type of files, delete your files for you and everyone , login with email and mobile number and real time database firebase and for notification purpose Node Js used.
Stars: ✭ 25 (-56.14%)
Mutual labels:  firebase, firebase-realtime-database
Petshop
Pet Shop is an e-commerce application for Android built with Flutter (iOS to come soon).
Stars: ✭ 127 (+122.81%)
Mutual labels:  firebase, firebase-realtime-database
Space
A real time chat app for developers built using React, Redux, Electron and Firebase
Stars: ✭ 161 (+182.46%)
Mutual labels:  firebase, firebase-realtime-database
Android Things Electricity Monitor
Electricity Monitor using Android Things and Firebase Realtime Database
Stars: ✭ 118 (+107.02%)
Mutual labels:  firebase, firebase-realtime-database
Firebase Esp8266
ESP8266 Firebase RTDB Arduino Library
Stars: ✭ 228 (+300%)
Mutual labels:  firebase, firebase-realtime-database
Simple Firebase Unity
Firebase Realtime-Database's REST API Wrapper for Unity in C#
Stars: ✭ 111 (+94.74%)
Mutual labels:  firebase, firebase-realtime-database
React Native Firebase Chat
React Native chat application using firebase.
Stars: ✭ 113 (+98.25%)
Mutual labels:  firebase, firebase-realtime-database
Pring
Cloud Firestore model framework for iOS - Google
Stars: ✭ 260 (+356.14%)
Mutual labels:  firebase, firebase-realtime-database
Rxfirebase
Rxjava 2.0 wrapper on Google's Android Firebase library.
Stars: ✭ 509 (+792.98%)
Mutual labels:  firebase, firebase-realtime-database

FirebaseApp

The Google Apps Script binding for the Firebase Realtime Database

Install

Best it to copy the content of this file in your Google Apps Script project: https://github.com/RomainVialard/FirebaseApp/blob/master/src/Code.gs

You can also add it as a library, though this is not recommended.
https://developers.google.com/apps-script/guides/libraries
Library's script ID: 1VlYLzhwx0YEoxIe62eItLAZeobVt_l-GQUKt2MXXuBHFVsqBkl9C_yBB

Documentation / Reference

Class FirebaseApp

getDatabaseByUrl(url, optSecret)

Retrieves a database by url

  • Parameters:
    • urlstring — - the database url

    • [optSecret]string — - a Firebase app secret

  • Returns: Database — the Database found at the given URL

encodeAsFirebaseKey(string)

Returns a valid Firebase key from a given string Firebase Keys can't contain any of the following characters: . $ # [ ] / https://firebase.google.com/docs/database/usage/limits#data_tree https://groups.google.com/forum/#!msg/firebase-talk/vtX8lfxxShk/skzA5vQFdosJ

  • Parameters: stringstring — - the string to encode

  • Returns: string — the encoded string

decodeFirebaseKey(string)

Returns a decoded string from a Firebase key encoded by encodeAsFirebaseKey()

  • Parameters: stringstring — - the encoded Firebase key

  • Returns: string — the decoded string

signInWithIdp(firebaseConfig, idToken)

Signs in or signs up a user using credentials from an Identity Provider (IdP) - eg: google.com. https://cloud.google.com/identity-platform/docs/reference/rest/v1/accounts/signInWithIdp

  • Parameters:
  • Returns: object — the auth token granting access to firebase

Class Database

createAuthToken(userEmail, optAuthData, serviceAccountEmail, privateKey)

Generates an authorization token to firebase

  • Parameters:
    • userEmailstring — the email account of the user you want to authenticate
    • optAuthDataobject — key-pairs of data to be associated to this user.
    • serviceAccountEmailstring — the email of the service account used to generate this token
    • privateKeystring — the private key of this service account
  • Returns: object — the auth token granting access to firebase

createAuthTokenFromServiceAccount(userEmail, optCustomClaims)

Generates an authorization token to Firebase

  • Parameters:
    • userEmailstring — - the email account of the user you want to authenticate

    • optCustomClaimsobject — - key-pairs of data to be associated to this user (aka custom claims).

  • Returns: object — the auth token granting access to firebase

createLegacyAuthToken(userEmail, optCustomClaims)

Generates an authorization token to firebase

  • Parameters:
    • userEmailstring — the email account of the user you want to authenticate
    • optCustomClaimsobject — - key-pairs of data to be associated to this user (aka custom claims).
  • Returns: object — the auth token granting access to firebase

getData(path, optQueryParameters)

Returns the data at this path

  • Parameters:
    • pathstring — - the path where the data is stored

    • [optQueryParameters]OptQueryParameters — - a set of query parameters

  • Returns: object — the data found at the given path

getAllData(requests)

Returns data in all specified paths

  • Parameters: {Array.<string — FirebaseApp_.request>} requests - array of requests

  • Returns: object — responses to each requests

pushData(path, data, optQueryParameters)

Generates a new child location using a unique key

  • Parameters:
    • pathstring — - the path where to create a new child

    • dataobject — - the data to be written at the generated location

    • [optQueryParameters]OptQueryParameters — - a set of query parameters

  • Returns: string — the child name of the new data that was added

setData(path, data, optQueryParameters)

Write data at the specified path

  • Parameters:
    • pathstring — - the path where to write data

    • dataobject — - the data to be written at the specified path

    • [optQueryParameters]OptQueryParameters — - a set of query parameters

  • Returns: object — the data written

updateData(path, data, optQueryParameters)

Update specific children at the specified path without overwriting existing data

  • Parameters:
    • pathstring — - the path where to update data

    • dataobject — - the children to overwrite

    • [optQueryParameters]OptQueryParameters — a - set of query parameters

  • Returns: object — the data written

removeData(path, optQueryParameters)

Delete data at the specified path

  • Parameters:
    • pathstring — - the path where to delete data

    • [optQueryParameters]OptQueryParameters — - a set of query parameters

  • Returns: null

getUrlFromPath(path)

Gets the absolute URL from the specified path

  • Parameters: pathstring — - the path / location to convert to URL
  • Returns: string — an encoded URL that is ready to be put into a browser

#Tutorials https://sites.google.com/site/scriptsexamples/new-connectors-to-google-services/firebase/tutorials

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].