0.1.7 • Published 4 years ago

tencent-login v0.1.7

Weekly downloads
7,531
License
Apache
Repository
-
Last release
4 years ago

Tencent Login SDK

How to use it?

  • Import this SDK in your package.json and your nodejs file, like this:

package.json

  ...
  "dependencies": {
    "tencent-login": "^0.1.0",
  }
  ...

nodejs file

const TencentLogin = require('tencent-login')
  • User this function:
const login = new TencentLogin()
const result = await login.login()
  • When you run this function, you should scan qr code login from wechat, then you could get Tencent Cloud SecretId/Key/Token/Appid. Like this:
    {
      tencent_secret_id: 'AKIDSH*********bxWrQEh',
      tencent_secret_key: '8UJNKUx3*********aL7L6wZ8',
      tencent_token: '571b8791702*********2220001',
      tencent_appid: 13*********009
    }