123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051 |
- <?php
- require_once __DIR__.'/../../../vendor/autoload.php';
-
- use TencentCloud\Tci\V20190318\TciClient;
-
-
- use TencentCloud\Tci\V20190318\Models\SubmitOpenClassTaskRequest;
- use TencentCloud\Tci\V20190318\Models\SubmitOpenClassTask;
-
- use TencentCloud\Common\Exception\TencentCloudSDKException;
- use TencentCloud\Common\Credential;
-
- use TencentCloud\Common\Profile\ClientProfile;
- use TencentCloud\Common\Profile\HttpProfile;
-
- try {
-
- $cred = new Credential("", "");
-
-
-
- $httpProfile = new HttpProfile();
- $httpProfile->setReqMethod("POST");
- $httpProfile->setReqTimeout(30);
- $httpProfile->setEndpoint("tci.tencentcloudapi.com");
-
-
-
- $clientProfile = new ClientProfile();
- $clientProfile->setSignMethod("TC3-HMAC-SHA256");
- $clientProfile->setHttpProfile($httpProfile);
- $client = new TciClient($cred, "", $clientProfile);
-
-
- $req = new SubmitOpenClassTaskRequest();
- $req->FileContent="https://edu-test-1253131631.cos.ap-guangzhou.myqcloud.com/aieduautotest/autotest_vedio.mp4";
- $req->FileType="vod_url";
- $req->LibrarySet=["library_15603955264181591716"];
-
-
- $resp = $client->SubmitOpenClassTask($req);
-
-
- print_r($resp->toJsonString());
-
-
-
- }
- catch(TencentCloudSDKException $e) {
- echo $e;
- }
|