I am encountering this issue: http://code.google.com/p/gdata-python-client/issues/detail?id=466
I am using the python api and authenticating like this:
#log in function
def getAuthenticatedYoutubeApi():
#setup the youtube api service
yt_service = gdata.youtube.service.YouTubeService()
# The YouTube API does not currently support HTTPS/SSL access.
yt_service.ssl = False
# A complete client login request
yt_service.email = settings.STREAMINGMEDIA_YT_EMAIL
yt_service.password = settings.STREAMINGMEDIA_YT_PASSWORD
yt_service.developer_key = settings.STREAMINGMEDIA_YT_DEVKEY
yt_service.ProgrammaticLogin()
return yt_service
#log in call
yt_service = getAuthenticatedYoutubeApi()
This same log in function is used to upload the video so I know it
works. However I get no rel="edit" link to use to update with and
line 742 of gdata.youtube.service causes the error in the subject of
this post.
Here is a list of all of the links with the video ID truncated to ID:
code:
for link in entry.link:
print "%s\t--> %s" % (link.rel,link.href)
output:
alternate --> http://www.youtube.com/watch?v=ID&feature=youtube_gdata
http://gdata.youtube.com/schemas/2007#video.responses -->
http://gdata.youtube.com/feeds/api/videos/ID/responses
http://gdata.youtube.com/schemas/2007#video.ratings -->
http://gdata.youtube.com/feeds/api/videos/ID/ratings
http://gdata.youtube.com/schemas/2007#video.complaints -->
http://gdata.youtube.com/feeds/api/videos/ID/complaints
http://gdata.youtube.com/schemas/2007#video.related -->
http://gdata.youtube.com/feeds/api/videos/ID/related
http://gdata.youtube.com/schemas/2007#mobile --> http://m.youtube.com/details?v=ID
self --> http://gdata.youtube.com/feeds/api/videos/ID
What am I doing wrong?
--
You received this message because you are subscribed to the Google Groups "YouTube APIs Developer Forum" group.
To post to this group, send email to youtube-api-gdata@googlegroups.com.
To unsubscribe from this group, send email to youtube-api-gdata+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/youtube-api-gdata?hl=en.
No comments:
Post a Comment