pedrohm / gdata-python-client

Automatically exported from code.google.com/p/gdata-python-client
0 stars 0 forks source link

Problem while trying to add comment (worked few days ago!) #412

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
The problem is that when i try to add comment by python api (using code from 
tutorial, bellow i pasted it) i got error:

{'status': 400, 'body': 'Invalid request version:/HERE_IS_MY_VIDEO_ID/', 
'reason': 'Bad Request'}

Here's script code:

# python-gdata (>= 1.2.4)
import gdata.media
import gdata.geo
import gdata.youtube
import gdata.youtube.service

DEVELOPER_KEY = "/MY_DEVELOPER_KEY/"

service = gdata.youtube.service.YouTubeService()
service.source = None
service.email = "/MY_EMAIL something@gmail.com bla bla/"
service.password = "/PASSWORD/"
service.developer_key = DEVELOPER_KEY
service.client_id = None
service.ProgrammaticLogin()

video_entry = service.GetYouTubeVideoEntry(video_id="/VIDEO_ID/")

service.AddComment(comment_text="ScriptTest", video_entry=video_entry) 

Original issue reported on code.google.com by darekni...@yahoo.pl on 15 Jul 2010 at 11:03

GoogleCodeExporter commented 9 years ago

Original comment by ccherub...@google.com on 6 Aug 2010 at 3:20