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

  • You already know Dokkio is an AI-powered assistant to organize & manage your digital files & messages. Very soon, Dokkio will support Outlook as well as One Drive. Check it out today!

View
 

FAQ

This version was saved 13 years, 8 months ago View current version     Page history
Saved by Tantek
on July 20, 2010 at 7:06:09 pm
 

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: Two things for simple Activity Streams support:

 

1. Update your feed element.  You probably have a feed element something like this:

 

<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-US">

 

Add the Activity Streams namespace to it like this:

 

<feed xmlns="http://www.w3.org/2005/Atom" xmlns:activity="http://activitystrea.ms/spec/1.0/" xml:lang="en-US">

 

And be sure to update the xml:lang attribute to the language you use in your posts. See the W3C FAQ on choosing a language tag for help with picking one other than "en-US".

 

2. 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 <activity:object-type> element with the object type URL inside to each entry like this:

 

<entry>
  ...
  <activity:object-type>http://activitystrea.ms/schema/1.0/note</activity: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.