Version 4, last updated by Maxim Cretu at December 21, 2011 07:55 UTC
Stream API
XML Structure
<events>
<event>
<date>Wed Dec 21 08:05:09 +0000 2011</date>
<operation>updated</operation>
<url>https://assembla-inc.assembla.com/spaces/AssemblaMarketing/tickets/855</url>
<object>Ticket</object>
<title>#855: [Blog][4.4.0] Show improvements to "What changed"</title>
<whatchanged>Assigned to changed from a to b</whatchanged>
<author>
<id>userid</id>
<name>user name</name>
</author>
<space>
<id>spaceid</id>
<name>Space Name</name>
</space>
</event>
...
</events>
Basic fields
- date - date event was generated.
- operation - operation type over a resource, some variations could be: uploaded, updated, created, commented, set to fixed, set back to new.
- url - URL to the resource event is associated with.
- title - title of the event, it's the main description of what happened in this event.
Tickets specific fields
- whatchanged - Text description of what was changed, only when operation is updated
- comment_or_description - If a ticket even contains a comment or a description, it will be displayed here, truncated to 80 character.
Other fields
- author - author of the event, event's could not have one
- space - space an event is associated with
Get user activity
To authenticate your requests you have to use basic authentication.
To get stream events for a user you have to send a GET request to https://www.assembla.com/activity
Examples with cURL:
Get all events:
curl -H "Accept: application/xml" https://user:password@www.assembla.com/activity
Get events between 10:00 and 11:00 o'clock for 10 Oct 2011:
curl -X GET -H "Accept: application/xml" -d "from=2011-10-10 10:00" -d "to=2011-10-10 11:00" https://user:password@www.assembla.com/activity