tpns-nodejs-sdk
TypeScript icon, indicating that this package has built-in type declarations

0.1.2 • Public • Published

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',
});

Readme

Keywords

none

Package Sidebar

Install

npm i tpns-nodejs-sdk

Weekly Downloads

2

Version

0.1.2

License

none

Unpacked Size

5.46 kB

Total Files

4

Last publish

Collaborators

  • hileix