diff --git a/templates/documentation/vod/video-download.md b/templates/documentation/vod/video-download.md index f31ba9b9..989275b5 100644 --- a/templates/documentation/vod/video-download.md +++ b/templates/documentation/vod/video-download.md @@ -216,7 +216,7 @@ It’s also possible to disable the download ability for the users, after the vi {% capture samples %} ```javascript -/ First install the "@api.video/nodejs-client" npm package +// First install the "@api.video/nodejs-client" npm package // Documentation: https://github.com/apivideo/api.video-nodejs-client/blob/main/doc/api/VideosApi.md#update const client = new ApiVideoClient({ apiKey: "YOUR_API_KEY" }); @@ -229,39 +229,22 @@ const videoUpdatePayload = { }; const updatedVideo = await client.videos.update(videoId, videoUpdatePayload); ``` +```php +videos()->update($videoId, (new \ApiVideo\Client\Model\VideoUpdatePayload())->setMp4Support(false) // Whether the player supports the mp4 format. ``` ```python # First install the api client with "pip install api.video" @@ -328,22 +311,38 @@ public class Example { } } ``` -```php -videos()->update($videoId, (new \ApiVideo\Client\Model\VideoUpdatePayload())->setMp4Support(false) // Whether the player supports the mp4 format. + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `Videos.Update``: %v\ +", err) + } + // response from `Update`: Video + fmt.Fprintf(os.Stdout, "Response from `Videos.Update`: %v\ +", res) +} ``` {% endcapture %} {% include "_partials/code-tabs.md" samples: samples %}