How to use the cos-nodejs-sdk-v5/sdk/config.setAppInfo function in cos-nodejs-sdk-v5

To help you get started, we’ve selected a few cos-nodejs-sdk-v5 examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github CFETeam / weapp-demo-album / server / services / cos / index.js View on Github external
const COS = require('cos-nodejs-sdk-v5')
const _cosConfig = require('cos-nodejs-sdk-v5/sdk/config')
const config = require('../../config')

/**
 * init COS config
 * see: https://github.com/tencentyun/cos-nodejs-sdk-v5/blob/master/sdk/config.js#L24
 */
_cosConfig.setAppInfo(config.cosAppId, config.cosSecretId, config.cosSecretKey);

module.exports = COS

cos-nodejs-sdk-v5

cos nodejs sdk v5

MIT
Latest version published 7 days ago

Package Health Score

78 / 100
Full package analysis