Skip to content

hileix/tpns-nodejs-sdk

Repository files navigation

tpns nodejs sdk

https://cloud.tencent.com/document/product/548/39060

Development

npm i

Build

npm run compile

Publish to npm

npm publish

Usage

const tpns = new Tpns({
  baseURL: 'https://api.tpns.sh.tencent.com/',
  accessID: 'accessID',
  secretKey: 'secretKey',
});

// https://cloud.tencent.com/document/product/548/39064
const res = await tpns.push({
  audience_type: 'all',
  message: {
    title: 'title-1',
    content: 'content-1',
  },
  message_type: 'notify',
  environment: 'dev',
});

About

tpns sdk for nodejs

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published