setAccessKey(""); // $client->setSecretKey(""); $vid = "vid"; $status = "Published"; echo "\n修改发布状态\n"; $req = new VodUpdateMediaPublishStatusRequest(); $req->setVid($vid); $req->setStatus($status); $response = new VodUpdateMediaPublishStatusResponse(); try { $response = $client->updateMediaPublishStatus($req); } catch (Throwable $e) { print($e); } if ($response->getResponseMetadata()->getError() != null) { print_r($response->getResponseMetadata()->getError()); } echo $response->serializeToJsonString();