Could you try the following instead?
entry = yt_service.GetYouTubeVideoEntry(uri="https://
gdata.youtube.com/feeds/api/users/default/uploads/PBjgURzmV88")
Cheers,
-Jeff Posnick, YouTube API Team
groups.google.com/group/youtube-api-gdata | apiblog.youtube.com |
@YouTubeDev
On Jan 11, 7:19 am, TD CtrlSoft <zerooo...@gmail.com> wrote:
> hi i'm using 1.0 python api. i have this code:
>
> import gdata.youtube
> import gdata.youtube.service
> import math
>
> yt_service = gdata.youtube.service.YouTubeService()
> yt_service.email = '*...@gmail.com'
> yt_service.password = '**password***'
> yt_service.source = 'moaradepiatra'
> yt_service.developer_key =
> 'AI39si6mLBFZSZtY12iSVA7t7RL2vfnnq508tUqYD_W02dUYEpMpuYzlTmFDaF5lPhq32Xw9rm 4WXaldyLn3Sn6YT6mM0qm6aA'
> yt_service.client_id = 'moaradepiatra'
> yt_service.ProgrammaticLogin()
>
> def deleteEntry():
> # video_id = str(request.vars.yt_id)
> entry = yt_service.GetYouTubeVideoEntry(video_id = 'PBjgURzmV88')
> response = yt_service.DeleteVideoEntry(entry)
> if response:
> return 'Video successfully deleted!'
> else: return str(response)
>
> function always returns "None" so the entry wont delete. can anyone help?
> thx
--
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