setAccessKey("your ak"); $client->setSecretKey("your sk"); $request = new ImpSubmitJobRequest(); $inputPath = new InputPath(); $inputPath->setType("VOD"); $inputPath->setVodSpaceName("your space name"); $inputPath->setFileId("your file id"); $request->setTemplateId("your template id"); $request->setCallbackArgs("your callback args"); $request->setEnableLowPriority("false"); // true 开启 false 不开启 闲时转码 $request->setInputPath($inputPath); $response = new ImpSubmitJobResponse(); try { $response = $client->SubmitJob($request); } catch (Exception $e) { echo $e, "\n"; } catch (Throwable $e) { echo $e, "\n"; } if ($response->getResponseMetadata()->getError() != null) { print_r($response->getResponseMetadata()->getError()); } echo $response->serializeToJsonString(); echo "\n";