qcloud-cos-auth

0.1.1 • Public • Published

qcloud-cos-auth

Just a simple module which generates signatures for accessing Tencent Cloud COS APIs.

Install

npm install qcloud-cos-auth --save

Usage

var Auth = require('qcloud-cos-auth');
var auth = new Auth('your app id', 'your secret id', 'your secret key');
var reusableSignature = auth.createReusableSignature(60, 'bucket', 'file name');
var nonReusableSignature = auth.createNonreusableSignature('bucket', 'file name');

Readme

Keywords

Package Sidebar

Install

npm i qcloud-cos-auth

Weekly Downloads

0

Version

0.1.1

License

MIT

Last publish

Collaborators

  • 36web