You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

node-red-contrib-firebase-data

Package Overview
Dependencies
Maintainers
4
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

node-red-contrib-firebase-data

The simplest of simple nodes with firebase

0.0.11
latest
Source
npmnpm
Version published
Weekly downloads
7
-82.5%
Maintainers
4
Weekly downloads
 
Created
Source

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

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

get-node

get-data-node

  • 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

  • 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

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

update-node

update-data-node

  • Remove method (DELETE) Delete Child Path.

remove-node

remove-data-node

  • 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

  • Rename child path

rename-node

rename-data-node

Keywords

node-red

FAQs

Package last updated on 22 Dec 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts