hileix / tpns-nodejs-sdk

tpns sdk for nodejs

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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


Languages

Language:TypeScript 63.6%Language:HTML 23.6%Language:CSS 12.8%