Skip to content

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

License

Notifications You must be signed in to change notification settings

36web/qcloud-cos-auth

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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');

About

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

Resources

License

Stars

Watchers

Forks

Packages

No packages published