That's not a supported means of retrieving caption data; please do not do that. You're required to use the approved methods that we outline in our documentation:
https://developers.google.com/youtube/2.0/developers_guide_protocol_captions
Cheers,
-Jeff Posnick, YouTube API Team
apiblog.youtube.com | Google+: http://goo.gl/bZflZ
On Sunday, June 24, 2012 7:07:31 PM UTC-4, Rucha Deshpande wrote:
Hello Jeffrey ,I am also trying to retrieve caption from youtube but using a different approach.usinghttp://www.youtube.com/api/timedtext?v= <videoid>&lang=enI am able to retrieve an XML after sending this request for some videos. BUt not able to retrieve the response for some videos. Why do you think it behaves differently with some videos ?@Pavan : Have you tried this approach ?Rucha
On Friday, 22 June 2012 11:05:04 UTC-5, Jeffrey Posnick wrote:Hello Pavan,So you're using ClientLogin (whether you know it or not), and to retrieve the ClientLogin token from an already authenticated instance of the YouTubeService class you should be able to follow the example at(under "Recalling an auth token"). You can then use that ClientLogin token value to manually construct a HTTP Authentication header so that it looks likeAuthorization: GoogleLogin auth=<CLIENT_LOGIN_TOKEN>
Just be aware that ClientLogin tokens expire after a period of time, so you can't reuse it indefinitely.
On Monday, June 18, 2012 4:12:24 PM UTC-4, Pavan Kumar wrote:Hello ,I am using the following authentication for making API requests.YouTubeService service = new YouTubeService("YoutubePersonalUploader", developerKey);
service.setUserCredentials(username, password);
I can successfully upload videos to youtube with service.insert command. I would like to retrieve captions for the uploaded video, for that purpose i need to give access token in the http request.How can i extract current access token for this service so that i can make a http request with that?Regards,
Pavan
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/-/Wu8Ts9w82SQJ.
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