Wednesday, January 11, 2012

[YouTube-API] unable to delete Video

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_W02dUYEpMpuYzlTmFDaF5lPhq32Xw9rm4WXaldyLn3Sn6YT6mM0qm6aA'
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 view this discussion on the web visit https://groups.google.com/d/msg/youtube-api-gdata/-/KTF1P51E5KAJ.
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