brightcove / PHP-API-Wrapper

This project provides a starting point for integrating the Brightcove CMS API into your application. It provides simple ways to interact with the API, as well as a long list of helper functions.
25 stars 33 forks source link

\Video->setCreatedAt(...) and setUpdatedAt(...), CMS API doesn't sense theme #50

Closed DrLightman closed 3 years ago

DrLightman commented 3 years ago

I tried to modify the creation and update date of a video object but they are not sensed by the API, the dates are not modified by the call.

Sample code:

// $bc_video - brightcove video object (Brightcove\Item\Video\Video)
$dt = date('Y-m-d\TH:i:s\.\0\0\0\Z', 1544445000);
$bc_video->setCreatedAt($dt);
$bc_video->setUpdatedAt($dt);
try {
    $vidresult = $bccms->updateVideo($bc_video);
} catch (Exception $e) {
    die('Exception: ' .  $e->getMessage());
}
echo sprintf('Applied C: %s, U: %s', $vidresult->getCreatedAt(), $vidresult->getUpdatedAt()) . PHP_EOL;

API specs confirms that apparently

So there is no way to edit the creation and/or update date of a video?

janmashat commented 3 years ago

Those are not editable in Brightcove Video Cloud either, so I think it's safe to assume that they cannot be changed through the API either.