• 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
 

Actor

This version was saved 14 years ago View current version     Page history
Saved by Chris Messina
on March 22, 2010 at 6:20:47 pm
 

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: 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.