Skip to content
pushmesdk / 1.7.1

pushmesdk 1.7.1

Install from the command line:
Learn more about npm packages
$ npm install @pushme-tgxn/pushmesdk@1.7.1
Install via package.json:
"@pushme-tgxn/pushmesdk": "1.7.1"

About this version

PushMe API Library

Can be used to communicate with a PushMe Server instance.

Client and Server side usage supported.

Installation

npm install @pushme-tgxn/pushmesdk

Client-Side Usage

Client-side usage is used when you want to interact with a PushMe Server instance as a user.

NodeJS

const PushMe = require("@pushme-tgxn/pushmesdk");

const pushMe = new PushMe();
const loggedIn = await pushMe.user.emailLogin("[email protected]", "Hunter2");

Expo

import PushMe from "@pushme-tgxn/pushmesdk";

const pushMe = new PushMe();
const loggedIn = await pushMe.user.emailLogin("[email protected]", "Hunter2");

Server-Side Usage

Server-Side usage can be used to send push notifications, and check for responses.

NodeJS

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."
});

Details


Assets

  • pushmesdk-1.7.1.tgz

Download activity

  • Total downloads 0
  • Last 30 days 0
  • Last week 0
  • Today 0