• If you are citizen of an European Union member nation, you may not use this service unless you are at least 16 years old.

  • Stop wasting time looking for files and revisions! Dokkio, a new product from the PBworks team, integrates and organizes your Drive, Dropbox, Box, Slack and Gmail files. Sign up for free.

View
 

FAQ

Page history last edited by Tantek 9 years, 8 months ago

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 to your existing entry elements 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="http://activitystrea.ms/spec/1.0/">
    http://activitystrea.ms/schema/1.0/note
  </object-type>
</entry>

 

2. There is no step 2. You're done. You have a simple activity stream now.

 

 

Validating Activity Streams Atom

Q: How do I validate my Activity Streams Atom?

A: There is no Activity Streams validator. However, you can (and should) :

1. Use the Feed Validator at http://feedvalidator.org to validate your feed, but be sure to ignore any warnings like "Use of unknown namespace: http://activitystrea.ms/spec/1.0/"

2. Use the Activity Streams Tester to see how your Activity Stream is being parsed:

 

 

 


Return to FrontPage

Comments (0)

You don't have permission to comment on this page.