$yt = new Zend_Gdata_YouTube($httpClient,$applicationId,$clientId,$developerKey);
$filesource = $yt->newMediaFileSource($file);
$filesource->setContentType(get_file_mime_type($file));
My get_file_mime_type function wasn't working properly, and was returning "charset=binary". The response from the API is just "Invalid Request", which couldn't be much more unhelpful. Can a more helpful response be returned?
--
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/-/bB904AZNE2QJ.
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