Webhook API
Use this endpoint to fetch data or test the API.
Make a POST request to the URL below with your command.
{"cmd":"testAPI"}{"cmd":"read_sites"}API Access Log
A log of API calls made from this page.
Firebase Connect
Test your Firebase service account connection
Click the button below to attempt to write a random document to the 'TestServiceAccount' collection in Firestore and then read it back using your service account credentials.
Accessing Firestore with the Service Account
Use the
memwork-e994e.json file to authenticate your backend applications.Ensure you have the service account file (memwork-e994e.json) securely stored and accessible by your application. Here are examples of how to initialize the Firebase Admin SDK in different languages:
const admin = require('firebase-admin');
const serviceAccount = require('./memwork-e994e.json');
admin.initializeApp({
credential: admin.credential.cert(serviceAccount)
});
const db = admin.firestore();View "sites" Collection
Fetch and display all documents from the "sites" collection in Firestore.
Ensure you have a valid memwork-e994e.json in the project root.