2 Star 9 Fork 6

tencentcloud/tencentcloud-sdk-nodejs

加入 Gitee
与超过 1400万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
tiw.v20190919.test.js 9.61 KB
一键复制 编辑 原始数据 按行查看 历史
tencentcloud 提交于 2025-03-14 18:32 +08:00 . release 4.0.1051
const expect = require("chai").expect
const tencentcloud = require("../../tencentcloud-sdk-nodejs")
const client = new tencentcloud.tiw.v20190919.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("tiw.v20190919.test.js", function () {
it("tiw.v20190919.SetOnlineRecordCallback", async function () {
try {
const data = await client.SetOnlineRecordCallback({})
expect(data).to.be.ok
} catch(error) {
expect(error.requestId).to.be.ok
expect(error.code).to.be.ok
}
})
it("tiw.v20190919.SetVideoGenerationTaskCallback", async function () {
try {
const data = await client.SetVideoGenerationTaskCallback({})
expect(data).to.be.ok
} catch(error) {
expect(error.requestId).to.be.ok
expect(error.code).to.be.ok
}
})
it("tiw.v20190919.CreateVideoGenerationTask", async function () {
try {
const data = await client.CreateVideoGenerationTask({})
expect(data).to.be.ok
} catch(error) {
expect(error.requestId).to.be.ok
expect(error.code).to.be.ok
}
})
it("tiw.v20190919.SetOnlineRecordCallbackKey", async function () {
try {
const data = await client.SetOnlineRecordCallbackKey({})
expect(data).to.be.ok
} catch(error) {
expect(error.requestId).to.be.ok
expect(error.code).to.be.ok
}
})
it("tiw.v20190919.SetTranscodeCallback", async function () {
try {
const data = await client.SetTranscodeCallback({})
expect(data).to.be.ok
} catch(error) {
expect(error.requestId).to.be.ok
expect(error.code).to.be.ok
}
})
it("tiw.v20190919.ResumeOnlineRecord", async function () {
try {
const data = await client.ResumeOnlineRecord({})
expect(data).to.be.ok
} catch(error) {
expect(error.requestId).to.be.ok
expect(error.code).to.be.ok
}
})
it("tiw.v20190919.DescribePPTCheckCallback", async function () {
try {
const data = await client.DescribePPTCheckCallback({})
expect(data).to.be.ok
} catch(error) {
expect(error.requestId).to.be.ok
expect(error.code).to.be.ok
}
})
it("tiw.v20190919.SetWarningCallback", async function () {
try {
const data = await client.SetWarningCallback({})
expect(data).to.be.ok
} catch(error) {
expect(error.requestId).to.be.ok
expect(error.code).to.be.ok
}
})
it("tiw.v20190919.SetTranscodeCallbackKey", async function () {
try {
const data = await client.SetTranscodeCallbackKey({})
expect(data).to.be.ok
} catch(error) {
expect(error.requestId).to.be.ok
expect(error.code).to.be.ok
}
})
it("tiw.v20190919.SetPPTCheckCallbackKey", async function () {
try {
const data = await client.SetPPTCheckCallbackKey({})
expect(data).to.be.ok
} catch(error) {
expect(error.requestId).to.be.ok
expect(error.code).to.be.ok
}
})
it("tiw.v20190919.CreateSnapshotTask", async function () {
try {
const data = await client.CreateSnapshotTask({})
expect(data).to.be.ok
} catch(error) {
expect(error.requestId).to.be.ok
expect(error.code).to.be.ok
}
})
it("tiw.v20190919.SetPPTCheckCallback", async function () {
try {
const data = await client.SetPPTCheckCallback({})
expect(data).to.be.ok
} catch(error) {
expect(error.requestId).to.be.ok
expect(error.code).to.be.ok
}
})
it("tiw.v20190919.DescribeTranscodeByUrl", async function () {
try {
const data = await client.DescribeTranscodeByUrl({})
expect(data).to.be.ok
} catch(error) {
expect(error.requestId).to.be.ok
expect(error.code).to.be.ok
}
})
it("tiw.v20190919.DescribeOnlineRecord", async function () {
try {
const data = await client.DescribeOnlineRecord({})
expect(data).to.be.ok
} catch(error) {
expect(error.requestId).to.be.ok
expect(error.code).to.be.ok
}
})
it("tiw.v20190919.DescribeOnlineRecordCallback", async function () {
try {
const data = await client.DescribeOnlineRecordCallback({})
expect(data).to.be.ok
} catch(error) {
expect(error.requestId).to.be.ok
expect(error.code).to.be.ok
}
})
it("tiw.v20190919.DescribeWhiteboardPushCallback", async function () {
try {
const data = await client.DescribeWhiteboardPushCallback({})
expect(data).to.be.ok
} catch(error) {
expect(error.requestId).to.be.ok
expect(error.code).to.be.ok
}
})
it("tiw.v20190919.StartWhiteboardPush", async function () {
try {
const data = await client.StartWhiteboardPush({})
expect(data).to.be.ok
} catch(error) {
expect(error.requestId).to.be.ok
expect(error.code).to.be.ok
}
})
it("tiw.v20190919.StartOnlineRecord", async function () {
try {
const data = await client.StartOnlineRecord({})
expect(data).to.be.ok
} catch(error) {
expect(error.requestId).to.be.ok
expect(error.code).to.be.ok
}
})
it("tiw.v20190919.CreateTranscode", async function () {
try {
const data = await client.CreateTranscode({})
expect(data).to.be.ok
} catch(error) {
expect(error.requestId).to.be.ok
expect(error.code).to.be.ok
}
})
it("tiw.v20190919.DescribeVideoGenerationTaskCallback", async function () {
try {
const data = await client.DescribeVideoGenerationTaskCallback({})
expect(data).to.be.ok
} catch(error) {
expect(error.requestId).to.be.ok
expect(error.code).to.be.ok
}
})
it("tiw.v20190919.SetWhiteboardPushCallback", async function () {
try {
const data = await client.SetWhiteboardPushCallback({})
expect(data).to.be.ok
} catch(error) {
expect(error.requestId).to.be.ok
expect(error.code).to.be.ok
}
})
it("tiw.v20190919.DescribeWarningCallback", async function () {
try {
const data = await client.DescribeWarningCallback({})
expect(data).to.be.ok
} catch(error) {
expect(error.requestId).to.be.ok
expect(error.code).to.be.ok
}
})
it("tiw.v20190919.CreatePPTCheckTask", async function () {
try {
const data = await client.CreatePPTCheckTask({})
expect(data).to.be.ok
} catch(error) {
expect(error.requestId).to.be.ok
expect(error.code).to.be.ok
}
})
it("tiw.v20190919.StopOnlineRecord", async function () {
try {
const data = await client.StopOnlineRecord({})
expect(data).to.be.ok
} catch(error) {
expect(error.requestId).to.be.ok
expect(error.code).to.be.ok
}
})
it("tiw.v20190919.SetWhiteboardPushCallbackKey", async function () {
try {
const data = await client.SetWhiteboardPushCallbackKey({})
expect(data).to.be.ok
} catch(error) {
expect(error.requestId).to.be.ok
expect(error.code).to.be.ok
}
})
it("tiw.v20190919.DescribeTranscode", async function () {
try {
const data = await client.DescribeTranscode({})
expect(data).to.be.ok
} catch(error) {
expect(error.requestId).to.be.ok
expect(error.code).to.be.ok
}
})
it("tiw.v20190919.DescribeRunningTasks", async function () {
try {
const data = await client.DescribeRunningTasks({})
expect(data).to.be.ok
} catch(error) {
expect(error.requestId).to.be.ok
expect(error.code).to.be.ok
}
})
it("tiw.v20190919.StopWhiteboardPush", async function () {
try {
const data = await client.StopWhiteboardPush({})
expect(data).to.be.ok
} catch(error) {
expect(error.requestId).to.be.ok
expect(error.code).to.be.ok
}
})
it("tiw.v20190919.PauseOnlineRecord", async function () {
try {
const data = await client.PauseOnlineRecord({})
expect(data).to.be.ok
} catch(error) {
expect(error.requestId).to.be.ok
expect(error.code).to.be.ok
}
})
it("tiw.v20190919.DescribeTranscodeCallback", async function () {
try {
const data = await client.DescribeTranscodeCallback({})
expect(data).to.be.ok
} catch(error) {
expect(error.requestId).to.be.ok
expect(error.code).to.be.ok
}
})
it("tiw.v20190919.SetVideoGenerationTaskCallbackKey", async function () {
try {
const data = await client.SetVideoGenerationTaskCallbackKey({})
expect(data).to.be.ok
} catch(error) {
expect(error.requestId).to.be.ok
expect(error.code).to.be.ok
}
})
it("tiw.v20190919.DescribeWhiteboardPush", async function () {
try {
const data = await client.DescribeWhiteboardPush({})
expect(data).to.be.ok
} catch(error) {
expect(error.requestId).to.be.ok
expect(error.code).to.be.ok
}
})
it("tiw.v20190919.DescribeVideoGenerationTask", async function () {
try {
const data = await client.DescribeVideoGenerationTask({})
expect(data).to.be.ok
} catch(error) {
expect(error.requestId).to.be.ok
expect(error.code).to.be.ok
}
})
it("tiw.v20190919.DescribePPTCheck", async function () {
try {
const data = await client.DescribePPTCheck({})
expect(data).to.be.ok
} catch(error) {
expect(error.requestId).to.be.ok
expect(error.code).to.be.ok
}
})
it("tiw.v20190919.DescribeSnapshotTask", async function () {
try {
const data = await client.DescribeSnapshotTask({})
expect(data).to.be.ok
} catch(error) {
expect(error.requestId).to.be.ok
expect(error.code).to.be.ok
}
})
})
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/tencentcloud/tencentcloud-sdk-nodejs.git
git@gitee.com:tencentcloud/tencentcloud-sdk-nodejs.git
tencentcloud
tencentcloud-sdk-nodejs
tencentcloud-sdk-nodejs
4.1.43

搜索帮助