Difference between revisions of "Stream API v2"

(Overview)
(Storing & Displaying)
Line 7: Line 7:
  
 
==Storing & Displaying==
 
==Storing & Displaying==
Unlike JomSocial 2.6where third party activity stream were created by JomSocial APIv1 and
+
Unlike JomSocial 2.6 and bellow, where third party activity streams were created by [[Stream API v1 |JomSocial APIv1]] and later displayed "as they are" directly from the database, in '''Stream API v2''' we first store the activity stream in the database and then manipulate the database data with the '''community'''-type plugin

Revision as of 11:34, 24 April 2013

WARNING: API examples below apply to version 2.8. To read the full Activity Stream API for older versions, click here

Overview

Since JomSocial 2.8 onwards, we bring the massive change in how activity streams are handled and introduce a set of new rules to follow which will allow more freedom for third party developers to easier customize every individual's activity stream item;
JomSocial 2.8+ streams are NOT backward compatible with JomSocial 2.6 and bellow, however, some legacy support for old activity stream exist in JomSocial 2.8 and above. This does not necessarily mean your old activity will work though.
You can still use the old API to create the activity streams, but you can't use the {multiple}...{/multiple} tags anymore as they are completely removed and will cause activity streams to break. (It will be created, but will not be shown on Front End).

Storing & Displaying

Unlike JomSocial 2.6 and bellow, where third party activity streams were created by JomSocial APIv1 and later displayed "as they are" directly from the database, in Stream API v2 we first store the activity stream in the database and then manipulate the database data with the community-type plugin