Frequently Asked Questions
Complete Activity Streams Atom example
Q: Where is a complete Activity Streams Atom example?
A:
Adding Activity Streams to an existing Atom feed
Q: How do I add Activity Streams support to my existing valid Atom feed?
A: Simply adding an object-type element in the Activity Streams namespace will do the trick.
1. Update your entry elements.
You're probably posting one particular type of entry to your feed.
<entry>
...
</entry>
If your entries are blog posts, use the Article object type:
http://activitystrea.ms/schema/1.0/article
If your entries are short updates, text notes like tweets, use the Note object type:
http://activitystrea.ms/schema/1.0/note
And add an <object-type xmlns:activity="http://activitystrea.ms/spec/1.0/"> element with the object type URL inside to each entry like this:
<entry>
...
<object-type xmlns:activity="http://activitystrea.ms/spec/1.0/">
http://activitystrea.ms/schema/1.0/note
</object-type>
</entry>
3. There is no step 3. You're done. You have a simple activity stream now.
Validating Activity Streams Atom
Q: How do I validate my Activity Streams Atom?
A:
Return to FrontPage
Comments (0)
You don't have permission to comment on this page.