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

  • Dokkio Sidebar (from the makers of PBworks) is a Chrome extension that eliminates the need for endless browser tabs. You can search all your online stuff without any extra effort. And Sidebar was #1 on Product Hunt! Check out what people are saying by clicking here.

View
 

Actor

Page history last edited by Evan Prodromou 11 years, 9 months ago Saved with comment

Description

The actor is the entity who did the activity. It will be conveyed via the atom/author element. The actor properties are placed inside the author element.

  • ID: atom:id within author, otherwise default to author:uri
  • Name: atom:name
  • Url to profile page: atom:link rel="alternate"
  • Profile photo: atom:link rel="photo"
  • Object-type: if not present, defaults to .../person 
  • Additional Fields: See Portable Contacts

Example

<author>
  <uri>http://myspace.com/ciberch</uri>
  <activity:object-type>http://activitystrea.ms/schema/1.0/person</activity:object-type>
  <id>tag:myspace.com,2009:/Person/4859568</id>
  <title>Monica Keller</title>
  <link rel="alternate" type="text/html" href="http://www.myspace.com/ciberch" />
  <link rel="photo" type="image/jpeg" href="http://c3.ac-images.myspacecdn.com/images02/151/s_88bcd3986d104044888e07298a5180d6.jpg" />
 <poco:name>
  <poco:givenName>Monica</poco:givenName>
  <poco:familyName>Keller</poco:familyName>
 </poco:name>
 <poco:displayName>Monica Keller</poco:displayName>
 <poco:preferredUsername>ciberch</poco:preferredUsername>
</author>

Shortened example, taking advantage of intelligent defaults:

<author>
  <uri>http://myspace.com/ciberch</uri>
  <name>Monica</name>
  <poco:name>
     <poco:givenName>Monica</poco:givenName>
     <poco:familyName>Keller</poco:familyName>
  <poco:name>
<author>

Note

In the early ActivityStreams spec, the <actor> element was separate from the <author> element. In March 2010 these elements were merged as it became clear that extending the Atom author element was allowed.

See Also

Comments (0)

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