// Code generated by protoc-gen-volcengine-sdk // source: describeVodMostPlayedStatisData // DO NOT EDIT! setAccessKey('your ak'); // $client->setSecretKey('your sk'); $request = new Volc\Service\Vod\Models\Request\DescribeVodMostPlayedStatisDataRequest(); $request->setSpace("your Space"); $request->setStartTime("your StartTime"); $request->setEndTime("your EndTime"); $request->setOrderType("your OrderType"); $request->setTopN(0); $response = new Volc\Service\Vod\Models\Response\DescribeVodMostPlayedStatisDataResponse(); try { $response = $client->describeVodMostPlayedStatisData($request); } catch (Exception $e) { echo $e, "\n"; } catch (Throwable $e) { echo $e, "\n"; } if ($response != null && $response->getResponseMetadata() != null && $response->getResponseMetadata()->getError() != null) { echo $response->getResponseMetadata()->getError()->serializeToJsonString(), "\n"; } else { echo $response->serializeToJsonString(), "\n"; }