使用 VB.NET 设置 YouTube 视频:AccessControl
如何使用 Visual Basic .NET 禁用视频中的评论/评分?
基本上,如何设置 yt:accessControl
元素?
How I can disable comments/rate in video using Visual Basic .NET ?
Basically, how can I set the yt:accessControl
element?
How make this request in VB .NET https://code.google.com/intl/pl/apis/youtube/2.0/developers_guide_protocol_updating_and_deleting_videos.html#Updating_Video_Entry
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您必须通过 HTTP PUT 更新信息,具体来说,使用视频 ID。
下面是一个 HTTP PUT 示例(取自上面的第二个链接),它显示了更新视频的请求的样子:
请注意末尾的多个
yt:accessControl
元素,指示的权限正在设置的视频。另请注意,您也可以在上传视频时设置这些权限。
You will have to update the information via an HTTP PUT, specifically, using the video's id.
Here is an example of an HTTP PUT (taken from the second link above) which shows what the request to update a video would look like:
Note the multiple
yt:accessControl
elements at the end indicating the permissions of the video being set.Also note that you can set these permissions when uploading the video as well.
.NET 客户端库在 rev 中添加了对 yt:accessControl 的支持。 1118:
http://code.google.com/p/google -gdata/source/detail?r=1118
要更新条目,您必须首先检索它,然后编辑其 YouTubeEntry.AccessControls 集合,最后调用 Update。
The .NET client library added support for yt:accessControl in rev. 1118:
http://code.google.com/p/google-gdata/source/detail?r=1118
To update the entry, you have to retrieve it first, then edit its YouTubeEntry.AccessControls collection and, eventually, call Update.