Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

dita-dev-team/my-portal-api

Open more actions menu

Repository files navigation

Build Status

Setup Instructions

1. Under Folder api, Create a subdirectory named config

2. Download the json api key file from firebase and 
   place it in the above created subdirectory

3. npm install

4. Run npm start   

Available Endpoints

/api/v1/client/access-token - Generates AccessToken

/api/v1/send - Sends FCM Message


Sample Request Body

  
  
  api/v1/send
   
 {
   "messageTopic": "debug",
   "messageBody":"Test",
   "messageTitle": "Still a Test"
 } 

Running Tests

npm test

To run all tests

npm run test-single test/parser.test.js

To run a single test.

About

A Simple API to handle Firebase Admin Capability for Cloud Messaging and Other features

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •  
Morty Proxy This is a proxified and sanitized view of the page, visit original site.