pushmesdk
/
1.6.8
pushmesdk 1.6.8
Install from the command line:
Learn more about npm packages
$ npm install @pushme-tgxn/pushmesdk@1.6.8
Install via package.json:
"@pushme-tgxn/pushmesdk": "1.6.8"
About this version
Can be used to communicate with a PushMe Server instance.
Client and Server side usage supported.
npm install @pushme-tgxn/pushmesdk
Client-side usage is used when you want to interact with a PushMe Server instance as a user.
const PushMe = require("@pushme-tgxn/pushmesdk");
const pushMe = new PushMe();
const loggedIn = await pushMe.user.emailLogin("[email protected]", "Hunter2");
import PushMe from "@pushme-tgxn/pushmesdk";
const pushMe = new PushMe();
const loggedIn = await pushMe.user.emailLogin("[email protected]", "Hunter2");
Server-Side usage can be used to send push notifications, and check for responses.
Send a Push message given a client secret.
const PushMe = require("@pushme-tgxn/pushmesdk");
const pushMe = new PushMe();
const pushedMessage = await pushMe.user.pushToTopic(topicSecret, {
title: "Hello World!",
body: "This is a test message."
});