new StreamFeed()
Manage api calls for specific feeds
The feed object contains convenience functions such add activity, remove activity etc
Methods
(static) addActivity(activity, callback)
Adds the given activity to the feed and
calls the specified callback
Parameters:
Name | Type | Description |
---|---|---|
activity |
object | The activity to add |
callback |
function | The callback |
intialize(client, feedSlug, userId, tokenopt, siteIdopt)
Initialize a feed object
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
client |
StreamClient | The stream client this feed is constructed from | |
feedSlug |
string | The feed slug | |
userId |
string | The user id | |
token |
string |
<optional> |
The authentication token |
siteId |
string |
<optional> |
The site identifier |