Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@tng/soa-node-tpush

Package Overview
Dependencies
Maintainers
6
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@tng/soa-node-tpush

soa tpush node client

  • 0.0.2
  • latest
  • npm
  • Socket score

Version published
Maintainers
6
Created
Source

SOA-TPUSH for Node

安装

yarn add @tng/soa-node-tpush

使用

const SOATpush = require('@tng/soa-node-tpush')
const TWSAuth = require('tws-auth')
const Teambition = require('teambition')

// use tws-auth
let twsAuth = new TWSAuth({ ... })
let soatracker = new SOAOrg({ twsAuth: twsAuth })

// use teambition
let teambition = new Teambition({ ... })
let soatracker = new SOATpush({ teambition: teambition })

// create a track
let track = await soatracker.v1().tracks().create({
  "deviceToken": "xxx",
  "message": {
    "data": {
      "additionalProp1": {},
      "additionalProp2": {},
      "additionalProp3": {}
    },
    "ios": {
      "badge": 0,
      "category": "xxx"
    },
    "mipush": {
      "description": "xxx",
      "extra": {
        "additionalProp1": "xx",
        "additionalProp2": "xx",
        "additionalProp3": "xxx"
      }
    },
    "notification": {
      "body": "xxx",
      "sound": "xxx",
      "title": "xxx"
    },
    "timeToLive": 0,
    "xgpush": {
      "builder_id": 0
    }
  },
  "platform": "xxx",
  "system_version": "xxx"
})

// query tracks
let track = await soatracker.appconfig().list()

测试

npm test

FAQs

Package last updated on 16 Jul 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc