Reporting and YouTube Comments

havent been put up stuff 4 a while. since i havnt been doin some kinda of report written and keep doing it, The report writing going slowly, cause im not very good at construct report anyway. I haven been written some Research parts of YouTube platform, and i found out a interesting function provided by YouTube & Google called “Interactive YouTube API Demo Beta” it more likely a API playground which is great similar to facebook API Testing platform.
Here, i had a look and collected all the functions which can be applied by YouTube APIs, includes generally, search video entries, (standard feeds, keywords…) and authentication advanced operation(rating, add comments,uploading, using community features)
And, The comments adding stuff i cant apply into my iworld application before, since the code in .Net guild Line shows request.Addcomment(Video v, Comment c). since, i only using querystring to transfer the vid to display.aspx page, cant actually formate a Video entry or doing video retrieve again.(These will both slow the performance and make codes much longer and hard to understand)
But on the playground, once, i was done the authentication work, only typing into my vidoeID, and development key, i can add the comments and get 200 successful message.
It proved the theory that you dont actually need to create a Video object to hold all the comments link uri data. there are some other alternative way to handle this stuff.

The request by sending xml to YouTube server is like that:
request
U can easily find out, the post url=api/xxxx/comments, the auth_token==xxxx, and the content in comments.

But the single fact is, the YouTube guild always give you a complicated way but no good for common usage,(for here, if i using the example listed in Net.Guild, the only time i can add comments, is i retrieve all the videos, get whole brunch of lists… ) which is hard and stupid for user and definitely uneasy to control all the output layouts.
After Analysis the http request and try to come out the same request only contain this easy information, the request.insert() has been finally used to do these work.
request.insert(uri(“gdata/api/video/xxx/comments”), Comment c)..using this way can create a request which similar to the example request i got from that playground. .. and also have the same functionality.

~ by kimialex92 on 2009/05/10.

Leave a Reply