Delete activities in Stream

6 views
Skip to first unread message

Dave Cracknell

unread,
Jan 15, 2010, 5:12:23 PM1/15/10
to MySpace APIs
Can you provide a list of the category labels related to delete
activities, such as PhotoDelete.

Monica Keller

unread,
Jan 16, 2010, 1:00:25 PM1/16/10
to MySpace APIs
Hi Dave,
I fear the list will continue to grow as we add new activities so I
think the easiest is to parse the Verb which will be Delete. See below
the activity generated when I removed an app

<entry>
<id>tag:myspace.com,2009:/activity/4859568/ApplicationRemove/
4859568/105381</id>
<title type="text">ApplicationRemove</title>
<published>2010-01-15T16:14:59Z</published>
<updated>2010-01-15T16:14:59Z</updated>
<author>
<name>Monica Keller</name>
<uri>http://www.myspace.com/ciberch</uri>
</author>
<category term="ApplicationRemove" label="ApplicationRemove"
scheme="http://activities.myspace.com/schema/1.0/" />
<sx:sync id="tag:myspace.com,2009:/activity/4859568/ApplicationAdd/
4859568/105381" updates="2" deleted="true">
<sx:history sequence="2" when="2010-01-15 16:14:59Z" />
<sx:history sequence="1" when="2010-01-15 16:14:18Z" />
</sx:sync>
<activity:verb>http://activities.myspace.com/schema/1.0/Verbs/
Delete</activity:verb>
</entry>

Rob Dolin

unread,
Jan 17, 2010, 1:46:26 PM1/17/10
to myspac...@googlegroups.com
My team consumes activity deletes from MySpace as part of our "Web Activities" functionality.

We look for a <sx:sync> element with the deleted="true" attribute

<sx:sync id="tag:myspace.com,2009:/activity/4859568/ApplicationAdd/
4859568/105381" updates="2" deleted="true">

FWIW--
--Rob


P.S. Our implementation was release in Fall 2009 and you can use it via: http://profile.live.com/WebActivities/Add.aspx?appid=1140860417

Reply all
Reply to author
Forward
0 new messages