Re: How to post a reply to a comment

14 views
Skip to first unread message

Greg Robbins

unread,
Mar 2, 2013, 7:40:33 PM3/2/13
to gdata-objec...@googlegroups.com
From the documentation, it looks like you can just add a link on the comment entry being uploaded.

GDataLink *link = [GDataLink linkWithRel:kGDataLinkYouTubeInReplyTo
  type:kGDataLinkTypeAtom
  href:priorCommentHref]
[newCommentEntry addLink:link];


At this point, though, apps should not be built with the GData library and the old XML YouTube API. The newer JSON API and Objective-C library are more efficient and easier to use.

Mike Jones

unread,
Mar 2, 2013, 10:55:17 PM3/2/13
to gdata-objec...@googlegroups.com
Thanks for the quick response, Greg.  I found the page you referenced, but I'm not using the old XML API, I'm using the gdata-objective-c-client in iOS found here (http://code.google.com/p/gdata-objectivec-client/).  Is that not the recommended toolkit to use?  And yet the snippet you provided is exactly what I needed.  I took the code from this forum posting that you authored previously (https://groups.google.com/forum/#!msg/gdata-objectivec-client/a2mln6iQyK0/BjapQOLrBbIJ) and simply added the extra link reference to 'newCommentEntry' and it worked.

Greg Robbins

unread,
Mar 2, 2013, 11:37:45 PM3/2/13
to gdata-objec...@googlegroups.com
The current Objective-C library for Google JSON APIs, including the latest YouTube API (v3), is https://code.google.com/p/google-api-objectivec-client/

Mike Jones

unread,
Mar 3, 2013, 2:07:40 AM3/3/13
to gdata-objec...@googlegroups.com
Holy crap, I have to start over!  I downloaded that SDK as well, but saw "experimental" next to API 3.0 and decided it was, well, experimental.  I guess I'll have more questions soon.  Thanks.

Greg Robbins

unread,
Mar 3, 2013, 2:28:12 AM3/3/13
to gdata-objec...@googlegroups.com
I apologize for the confusion. I have updated the GData Objective-C library project's home page to make the status of each API more apparent.


Reply all
Reply to author
Forward
0 new messages