0

我使用以下内容创建了一个 YoutubeRequest:

settings = New YouTubeRequestSettings("appname", devkey", user, pass)
request = New YouTubeRequest(settings)

但有时我有 CaptchaRequiredException。如何处理此异常并获取验证码 URL/IMG 等,谁能帮忙,我使用 c#?谢谢

4

1 回答 1

0
try
{
    settings = new YouTubeRequestSettings("appname", devkey", user, pass);
    request = new YouTubeRequest(settings);
}
catch (CaptchaRequiredException ex)
{
    //do something with ex.Url and ex.Token
}

请参阅Google 的文档

于 2013-03-18T17:51:22.023 回答