Skip to content
pushmesdk / 1.10.7

pushmesdk 1.10.7

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

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.

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

const pushMe = new PushMeSDK();
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.

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

const pushMe = new PushMeSDK();
const pushedMessage = await pushMe.user.pushToTopic(topicSecret, {
    title: "Hello World!",
    body: "This is a test message."
});

Library Build inspired by https://github.com/uuidjs/uuid/tree/main

Details


Assets

  • pushmesdk-1.10.7.tgz

Download activity

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