Add json data to firebase from webhook url using cloudflare or netlify
Budget: $10 – $30 USD
To accomplish this task, we can create an Endpoint which is a piece of code that allows us to receive JSON data via an HTTP POST request and store it in our Firebase Database.
First, we need to create a Firebase project in the Firebase Console. After that, we need to install and configure the Firebase SDK for our endpoint. This will allow us to connect our endpoint code to our Firebase project. We then create and configure an endpoint that will receive the incoming JSON data via a POST request.
Once the endpoint is set up and running, we will need to parse the incoming JSON data and store it into our Firebase Database. This is done by writing code that will read the data from the request body, store it into an object, and then store it into Firebase via the Firebase API.
Finally, we need to deploy the endpoint code so that the webhook will be able to send the data to the endpoint. We can do this by using a cloud hosting platform such as AWS, GCP, or Heroku.
Once the endpoint is live and fully configured, we will be able to accept the incoming data and store it into Firebase for safekeeping.
My data is one table as follows
Pair - String
Time - 05/12/2023 07:18
Type - String
four_hour - String
one_hour - String
thirty_minute - String
fifteen_minute - String
five_minute - String
one_minute - String
stoch_four_hour - String
stoch_one_hour - String
stoch_thirty_minute - String
stoch_fifteen_minute - String
stoch_five_minute - String
stoch_one_minute - String
message - - String
First, we need to create a Firebase project in the Firebase Console. After that, we need to install and configure the Firebase SDK for our endpoint. This will allow us to connect our endpoint code to our Firebase project. We then create and configure an endpoint that will receive the incoming JSON data via a POST request.
Once the endpoint is set up and running, we will need to parse the incoming JSON data and store it into our Firebase Database. This is done by writing code that will read the data from the request body, store it into an object, and then store it into Firebase via the Firebase API.
Finally, we need to deploy the endpoint code so that the webhook will be able to send the data to the endpoint. We can do this by using a cloud hosting platform such as AWS, GCP, or Heroku.
Once the endpoint is live and fully configured, we will be able to accept the incoming data and store it into Firebase for safekeeping.
My data is one table as follows
Pair - String
Time - 05/12/2023 07:18
Type - String
four_hour - String
one_hour - String
thirty_minute - String
fifteen_minute - String
five_minute - String
one_minute - String
stoch_four_hour - String
stoch_one_hour - String
stoch_thirty_minute - String
stoch_fifteen_minute - String
stoch_five_minute - String
stoch_one_minute - String
message - - String