我正在尝试获取经过身份验证的 Youtube 用户个人资料的收件箱消息。这是我的代码
def GetInboxMessage(self):
uri = 'https://gdata.youtube.com/feeds/api/users/default/inbox?v=2&key=%s' %DEVELOPER_KEY
print 'GET INBOX\n'
feed = yt_service.GetYouTubeVideoFeed(uri)
for entry in feed.entry:
try:
PrintVideoDetails(self,entry,'videomessage')
except:
pass
这适用于我的帐户。当我尝试朋友的帐户时,我收到以下错误:
文件“/usr/local/lib/python2.7/dist-packages/gdata/youtube/service.py”,第 183 行,在 GetYouTubeVideoFeed
返回 self.Get(uri, converter=gdata.youtube.YouTubeVideoFeedFromString) 文件“/usr /local/lib/python2.7/dist-packages/gdata/service.py”,第 1108 行,在 Get 'reason': server_response.reason, 'body': result_body}gdata.service.RequestError: {'status': 500, 'body': "http://schemas.google.com/g/2005'>GData
ServiceException
Internal Error", 'reason': 'Internal Server Error'}
我不知道如何处理它。有任何想法吗 ??