Hi,
I am creating an object for handling youtube api.
In my object I have to methods :
- getCommentList - getting a url for the current upload,for example http://gdata.youtube.com/feeds/api/videos/VIDEO_ID/comments?alt=json and return an array of objects - author of the comment and the content of the comment.
- getEntriesObject - returning an array with objects for each upload entry we have title,thumbnail,and the comment list that returned from getCommentList
The Code Is here - http://pastebin.com/hipTM5Zi
The Problem I am getting that - first I have console.log(currentObject) - I am getting the title,the thumbnail url and the comments I am not getting.
The second problem is that I am running getEntriesObject and I am getting an empty array.
Thanks,Yosy
By the way,I am using jQuery