Skip to content

Commit b97e2ca

Browse files
author
dfounderliu
committed
fix: package-version
1 parent a79bcca commit b97e2ca

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed

src/client.js

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -150,6 +150,18 @@ class CamClient {
150150
}
151151
}
152152

153+
class CamV2Client {
154+
constructor(credentials = {}) {
155+
this.credentials = credentials
156+
}
157+
async request(data) {
158+
return await new TencentCloudClient(this.credentials, {
159+
host: 'cam.api.qcloud.com',
160+
path: '/v2/index.php'
161+
}).doCloudApiRequest(data)
162+
}
163+
}
164+
153165
class CnsClient {
154166
constructor(credentials = {}) {
155167
this.credentials = credentials
@@ -180,6 +192,7 @@ module.exports = {
180192
ScfClient,
181193
TagClient,
182194
CamClient,
195+
CamV2Client,
183196
CnsClient,
184197
ApigwClient,
185198
DomainClient,

src/index.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
module.exports = {
22
scf: require('./client').ScfClient,
33
cam: require('./client').CamClient,
4+
camv2: require('./client').CamV2Client,
45
cns: require('./client').CnsClient,
56
tag: require('./client').TagClient,
67
apigw: require('./client').ApigwClient,

0 commit comments

Comments
 (0)