So not long after I had released my YouTubeCFC wrapper, Google dared to update the API to match the rest of their services. I didn't bother updating my code as I wanted to wait till upload support was done. YouTube now officially allows you to upload (and even update) videos.
I've begun work on rewriting my CFC. It supports basic reading (get top videos for example), but no searching yet. But I did get upload working. Here is an example of how easy it is:
1 <cfset yt = createObject("component", "youtube")>
2 <cfset yt.setDeveloperKey("xxx")>
3
4 <cfset yt.login("cfjedimaster", "likeidsay")>
5 <cfset r = yt.upload(expandPath('./movie2.mov'),'Test Upload','Playing with youtube','Music','testing,fun')>
6 <cfoutput>id=#r#</cfoutput>
I've included the CFC for folks to play with, and once I get a bit more of the API done I'll replace the CFC at RIAForge.
You will need a valid login and a developer key. Also there seems to be a quota limit. I ran into after uploading about 10 videos.
2 <cfset yt.setDeveloperKey("xxx")>
3
4 <cfset yt.login("cfjedimaster", "likeidsay")>
5 <cfset r = yt.upload(expandPath('./movie2.mov'),'Test Upload','Playing with youtube','Music','testing,fun')>
6 <cfoutput>id=#r#</cfoutput>
Comment 1 written by Jeff on 15 April 2008, at 11:22 PM
(PS. Once again, nice work)
Comment 2 written by Raul Riera on 16 April 2008, at 2:58 AM
Comment 3 written by Sam on 17 April 2008, at 1:03 PM
Hmmmm....
Alright... Woo Hoo! First Subscriber! :-)
Comment 4 written by Jason on 17 April 2008, at 10:47 PM
http://code.google.com/support/bin/topic.py?topic=...
Comment 5 written by Frankie on 27 January 2009, at 10:36 AM
Comment 6 written by Raymond Camden on 27 January 2009, at 10:39 AM
Comment 7 written by Frankie on 29 January 2009, at 9:45 AM
In shared hosting it doesn't work...
It's true? or I have to change hosting?
Comment 8 written by Raymond Camden on 29 January 2009, at 10:27 AM
Comment 9 written by Frankie on 30 January 2009, at 12:59 PM
Thanks for the reply...
I give them the link to the hotfix....
Another question is: how can I post comment?
Comment 10 written by Raymond Camden on 30 January 2009, at 8:03 PM
Comment 11 written by Frankie on 1 February 2009, at 10:54 AM
[Add Comment] [Subscribe to Comments]