如何使用youtube api v3获取插入的youtube videoid [英] How to get inseted youtube videoid using youtube api v3
本文介绍了如何使用youtube api v3获取插入的youtube videoid的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
您好我正在使用YouTube API v3
以下是代码:https://developers.google.com/youtube/v3/code_samples/dotnet?hl=en#upload_a_video [ ^ ]
$ b $下面的b是获取视频的方式...
void videosInsertRequest_ResponseReceived(视频视频)
{
string videoId = video.Id;
}
i想要将此视频ID返回给我的变量,我该怎么做呢。
谢谢高级。
解决方案
我通过以下代码解决问题..
ideosInsertRequest.ResponseReceived + = videosInsertRequest_ResponseReceived => SomeFunc(videosInsertRequest_ResponseReceived);
Hi i am using YouTube API v3
below is code : https://developers.google.com/youtube/v3/code_samples/dotnet?hl=en#upload_a_video[^]
below is way to get videoid...
void videosInsertRequest_ResponseReceived(Video video)
{
string videoId = video.Id;
}
i want to return this video id to my variable, how can i do that.
Thanks in advanced.
解决方案
I solve issue by below code..
ideosInsertRequest.ResponseReceived += videosInsertRequest_ResponseReceived => SomeFunc(videosInsertRequest_ResponseReceived);
这篇关于如何使用youtube api v3获取插入的youtube videoid的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文