代码拉取完成,页面将自动刷新
同步操作将从 tencentcloud/tencentcloud-sdk-nodejs 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
const expect = require("chai").expect
const tencentcloud = require("../../tencentcloud-sdk-nodejs")
const client = new tencentcloud.sms.v20190711.Client({
credential: {
secretId: process.env.secretId,
secretKey: process.env.secretKey,
},
region: "ap-shanghai",
profile: {
signMethod: "TC3-HMAC-SHA256",
httpProfile: {
reqMethod: "POST",
reqTimeout: 30,
endpoint: "cvm.ap-shanghai.tencentcloudapi.com",
},
},
})
describe("sms.v20190711.test.js", function () {
it("sms.v20190711.ModifySmsSign", async function () {
try {
const data = await client.ModifySmsSign({})
expect(data).to.be.ok
} catch(error) {
expect(error.requestId).to.be.ok
expect(error.code).to.be.ok
}
})
it("sms.v20190711.AddSmsSign", async function () {
try {
const data = await client.AddSmsSign({})
expect(data).to.be.ok
} catch(error) {
expect(error.requestId).to.be.ok
expect(error.code).to.be.ok
}
})
it("sms.v20190711.PullSmsSendStatus", async function () {
try {
const data = await client.PullSmsSendStatus({})
expect(data).to.be.ok
} catch(error) {
expect(error.requestId).to.be.ok
expect(error.code).to.be.ok
}
})
it("sms.v20190711.SendSms", async function () {
try {
const data = await client.SendSms({})
expect(data).to.be.ok
} catch(error) {
expect(error.requestId).to.be.ok
expect(error.code).to.be.ok
}
})
it("sms.v20190711.DeleteSmsTemplate", async function () {
try {
const data = await client.DeleteSmsTemplate({})
expect(data).to.be.ok
} catch(error) {
expect(error.requestId).to.be.ok
expect(error.code).to.be.ok
}
})
it("sms.v20190711.SmsPackagesStatistics", async function () {
try {
const data = await client.SmsPackagesStatistics({})
expect(data).to.be.ok
} catch(error) {
expect(error.requestId).to.be.ok
expect(error.code).to.be.ok
}
})
it("sms.v20190711.SendStatusStatistics", async function () {
try {
const data = await client.SendStatusStatistics({})
expect(data).to.be.ok
} catch(error) {
expect(error.requestId).to.be.ok
expect(error.code).to.be.ok
}
})
it("sms.v20190711.CallbackStatusStatistics", async function () {
try {
const data = await client.CallbackStatusStatistics({})
expect(data).to.be.ok
} catch(error) {
expect(error.requestId).to.be.ok
expect(error.code).to.be.ok
}
})
it("sms.v20190711.DescribeSmsTemplateList", async function () {
try {
const data = await client.DescribeSmsTemplateList({})
expect(data).to.be.ok
} catch(error) {
expect(error.requestId).to.be.ok
expect(error.code).to.be.ok
}
})
it("sms.v20190711.PullSmsReplyStatus", async function () {
try {
const data = await client.PullSmsReplyStatus({})
expect(data).to.be.ok
} catch(error) {
expect(error.requestId).to.be.ok
expect(error.code).to.be.ok
}
})
it("sms.v20190711.DescribeSmsSignList", async function () {
try {
const data = await client.DescribeSmsSignList({})
expect(data).to.be.ok
} catch(error) {
expect(error.requestId).to.be.ok
expect(error.code).to.be.ok
}
})
it("sms.v20190711.PullSmsSendStatusByPhoneNumber", async function () {
try {
const data = await client.PullSmsSendStatusByPhoneNumber({})
expect(data).to.be.ok
} catch(error) {
expect(error.requestId).to.be.ok
expect(error.code).to.be.ok
}
})
it("sms.v20190711.ModifySmsTemplate", async function () {
try {
const data = await client.ModifySmsTemplate({})
expect(data).to.be.ok
} catch(error) {
expect(error.requestId).to.be.ok
expect(error.code).to.be.ok
}
})
it("sms.v20190711.PullSmsReplyStatusByPhoneNumber", async function () {
try {
const data = await client.PullSmsReplyStatusByPhoneNumber({})
expect(data).to.be.ok
} catch(error) {
expect(error.requestId).to.be.ok
expect(error.code).to.be.ok
}
})
it("sms.v20190711.DeleteSmsSign", async function () {
try {
const data = await client.DeleteSmsSign({})
expect(data).to.be.ok
} catch(error) {
expect(error.requestId).to.be.ok
expect(error.code).to.be.ok
}
})
it("sms.v20190711.AddSmsTemplate", async function () {
try {
const data = await client.AddSmsTemplate({})
expect(data).to.be.ok
} catch(error) {
expect(error.requestId).to.be.ok
expect(error.code).to.be.ok
}
})
})
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。