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

  • Social distancing? Try a better way to work remotely on your online files. Dokkio, a new product from PBworks, can help your team find, organize, and collaborate on your Drive, Gmail, Dropbox, Box, and Slack files. Sign up for free.

View
 

Actor

Page history last edited by Evan Prodromou 9 years, 6 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.