0
我的网站使用YouTube API供用户进行互动。 并非所有的,但几个用户名进入我的系统是不存在的渠道,我不知道如何检测这个?某些用户名显示为混乱的字符串! YouTube API AuthSub
它们是正确的长度,我只检查字母数字字符串。举个例子:
l3C9jpHV76COU9UHhWNneg
这里是获取帐户的用户名的代码片段。大部分时间:这部分代码没有问题!
//User Profile Object
$userProfileEntry = $yt->getUserProfile('default');
//Get the username of the currently authed channel
$AuthedAccountName = (string)$userProfileEntry->getUsername();
啊!现在一切都说得通了!谢谢杰夫:) – 2013-04-10 11:12:40