Twitter Examples

Page history last edited by Martin Atkins 8 mos ago

Twitter publishes Atom entries that look like this:

    <entry>
      <title>ciberch: thanks to /Jerry  @robdolin , @daveman692, @chrismessina, @apparentlymart and @jsmarr for a very produtive activitystrea.ms session</title>
      <content type="html">ciberch: thanks to /Jerry  @robdolin , @daveman692, @chrismessina, @apparentlymart and @jsmarr for a very produtive activitystrea.ms session</content>
      <id>tag:twitter.com,2007:http://twitter.com/ciberch/statuses/2396395271</id>
      <published>2009-06-30T00:59:54+00:00</published>
      <updated>2009-06-30T00:59:54+00:00</updated>
      <link type="text/html" rel="alternate" href="http://twitter.com/ciberch/statuses/2396395271"/>
      <link type="image/pjpeg" rel="image" href="http://s3.amazonaws.com/twitter_production/profile_images/81481539/180653_normal.jpg"/>
      <author>
        <name>Monica Keller</name>
        <uri>http://www.myspace.com/ciberch</uri>
      </author>
    </entry>

Since the actor's name appears in the title, these are activity entries rather than object entries. Unfortunately, since Twitter uses the status's own URL as the activity URL we do unfortunately need some duplication to turn this into a real activity entry. For example:

    <entry>
      <title>ciberch: thanks to /Jerry  @robdolin , @daveman692, @chrismessina, @apparentlymart and @jsmarr for a very produtive activitystrea.ms session</title>
      <content type="html">ciberch: thanks to /Jerry  @robdolin , @daveman692, @chrismessina, @apparentlymart and @jsmarr for a very produtive activitystrea.ms session</content>
      <id>tag:twitter.com,2007:http://twitter.com/ciberch/statuses/2396395271</id>
      <published>2009-06-30T00:59:54+00:00</published>
      <updated>2009-06-30T00:59:54+00:00</updated>
      <link type="text/html" rel="alternate" href="http://twitter.com/ciberch/statuses/2396395271"/>
      <link type="image/pjpeg" rel="image" href="http://s3.amazonaws.com/twitter_production/profile_images/81481539/180653_normal.jpg"/>
      <author>
        <name>Monica Keller</name>
        <uri>http://www.myspace.com/ciberch</uri>
      </author>
      <activity:verb>http://activitystrea.ms/schema/1.0/post</activity:verb>
      <activity:object>
          <id>tag:twitter.com,2007:http://twitter.com/ciberch/statuses/2396395271/object</id>
          <title>thanks to /Jerry  @robdolin , @daveman692, @chrismessina, @apparentlymart and @jsmarr for a very produtive activitystrea.ms session</title>
          <link type="text/html" rel="alternate" href="http://twitter.com/ciberch/statuses/2396395271"/>
          <published>2009-06-30T00:59:54+00:00</published>
          <updated>2009-06-30T00:59:54+00:00</updated>
          <author>
              <name>Monica Keller</name>
              <uri>http://www.myspace.com/ciberch</uri>
          </author>
      </activity:object>
    </entry>

Comments (0)

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