Tencent Cloud Login
npm install tencent-login* Import this SDK in your package.json and your nodejs file, like this:
package.json
``json`
...
"dependencies": {
"tencent-login": "^0.1.0",
}
...
nodejs file
`javascript`
const TencentLogin = require('tencent-login')
* User this function:
`javascript`
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:
`text``
{
tencent_secret_id: 'AKIDSH*bxWrQEh',
tencent_secret_key: '8UJNKUx3*aL7L6wZ8',
tencent_token: '571b8791702*2220001',
tencent_appid: 13*009
}