Skip to content

Instantly share code, notes, and snippets.

@gnippy
Created October 9, 2012 15:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gnippy/3859671 to your computer and use it in GitHub Desktop.
Save gnippy/3859671 to your computer and use it in GitHub Desktop.
YouTube Comments Sample Payload (Activity Streams)
<entry xmlns:gnip="http://www.gnip.com/schemas/2010" xmlns="http://www.w3.org/2005/Atom">
<id>http://gdata.youtube.com/feeds/api/videos/p9ZjX1vtucM/comments/ZhYotsbfYDGGk605g6cqLmI2M4Sg0UFPUvu8PTLIcac</id>
<published>2012-10-09T15:42:38.000Z</published>
<updated>2012-10-09T15:42:38.000Z</updated>
<title>08Cdancer commented on a video on YouTube</title>
<category term="CommentPosted" label="Comment Posted"/>
<link rel="alternate" type="text/html" href="http://www.youtube.com/watch?v=p9ZjX1vtucM"/>
<source>
<link rel="self" type="application/atom+xml" href="http://gdata.youtube.com/feeds/api/videos/p9ZjX1vtucM/comments"/>
<title>YouTube - Video - Comments - p9ZjX1vtucM</title>
<updated>2012-10-09T08-49-31Z</updated>
<gnip:rule>p9ZjX1vtucM</gnip:rule>
</source>
<service:provider xmlns:service="http://activitystrea.ms/service-provider">
<name>YouTube</name>
<uri>http://www.youtube.com/</uri>
<icon/>
</service:provider>
<activity:verb xmlns:activity="http://activitystrea.ms/spec/1.0/">http://activitystrea.ms/schema/1.0/post</activity:verb>
<activity:object xmlns:activity="http://activitystrea.ms/spec/1.0/">
<activity:object-type>http://activitystrea.ms/schema/1.0/comment</activity:object-type>
<id>object:http://gdata.youtube.com/feeds/api/videos/p9ZjX1vtucM/comments/ZhYotsbfYDGGk605g6cqLmI2M4Sg0UFPUvu8PTLIcac</id>
<title type="text">I thought they ...</title>
<content type="text">I thought they weren't aloud to do&#xFEFF; lifts</content>
<link rel="alternate" type="text/html" href="http://www.youtube.com/watch?v=p9ZjX1vtucM"/>
<link rel="self" type="application/atom+xml" href="http://gdata.youtube.com/feeds/api/videos/p9ZjX1vtucM/comments/ZhYotsbfYDGGk605g6cqLmI2M4Sg0UFPUvu8PTLIcac"/>
</activity:object>
<author>
<name>08Cdancer</name>
<uri>http://www.youtube.com/user/08Cdancer</uri>
</author>
<activity:author xmlns:activity="http://activitystrea.ms/spec/1.0/">
<activity:object-type>http://activitystrea.ms/schema/1.0/person</activity:object-type>
<link rel="alternate" type="text/html" length="0" href="http://www.youtube.com/user/08Cdancer"/>
<id>http://gdata.youtube.com/feeds/api/users/08Cdancer</id>
</activity:author>
<activity:actor xmlns:activity="http://activitystrea.ms/spec/1.0/">
<activity:object-type>http://activitystrea.ms/schema/1.0/person</activity:object-type>
<link rel="alternate" type="text/html" length="0" href="http://www.youtube.com/user/08Cdancer"/>
<id>http://gdata.youtube.com/feeds/api/users/08Cdancer</id>
</activity:actor>
<gnip:matching_rules>
<gnip:matching_rule rel="source">p9ZjX1vtucM</gnip:matching_rule>
</gnip:matching_rules>
</entry
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment