node-red-contrib-firebase-data 0.0.11

The simplest of simple nodes with firebase

npm install node-red-contrib-firebase-data

Introduction

I will briefly explain how to use Firebase methods. https://firebase.google.com/docs/reference/rest/database Basically implemented based on this API document.

Features

Get Set Push Update Remove setpriority rename child path

Certificate

Access link firebase settings as below. After that, click button "Generate new private key" to download key https://console.firebase.google.com/u/0/project/`[your-project]`/settings/serviceaccounts/adminsdk

certificate

Edit node, choose Auth Type is JSON Web Token and input client Email and private Key from the file

certificate2

Usage

  1. Get method (GET) If you execute after setting the Child Path, the Child Path data will appear.

get-node

get-data-node

  1. Set method (PUT) After inputting data such as {"first": "Jack", "last": "Sparrow"}, if there is already data in the specified Child Path, that data will be lost and updated with the input data.

set-node

set-data-node

  1. Push method (POST) For example, Child Path is a list of users, enter {"user_number": "321", "name": "John"}. When executed, the new user will be added to the user list.

push-node

push-data-node

  1. Update method (PATCH) Update the existing data with the entered data.

update-node

update-data-node

  1. Remove method (DELETE) Delete Child Path.

remove-node

remove-data-node

  1. Set Priority and setwithPrioty methods (PATCH) This is because the Put method sets the priority for the child path. (Or to get the priority with GET)

setpriority-node

setpriority-data-node

  1. Rename child path

rename-node

rename-data-node

Node Info

Version: 0.0.11
Updated 4 years, 3 months ago
License: MIT
Rating: 4.5 4

Categories

Actions

Rate:

Downloads

33 in the last week

Nodes

  • addFirebase
  • firebaseCertificate

Keywords

  • node-red
  • firebase
  • firebase-data
  • firebase data
  • firebase-data realtime