Library for manipulating external stream instances.
Extends
Methods
-
<static> extstreams.commentOnActivity(activity, comment) → {Promise}
-
Create a comment in Jive on an activity that was generated by an external stream.
Parameters:
Name Type Description activityObject activity object returned from jive. For example, an object returned in the promise by extstreams.pushActivity method
commentObject comment JSON, see https://developers.jivesoftware.com/api/rest/CommentEntity.html
Returns:
Promise that resolves with a response object. response.entity is the created comment that is returned from Jive
- Type
- Promise
-
<static> extstreams.commentOnActivityByExternalID(externalActivityID, extstream, comment) → {Promise}
-
Create a comment on an activity using this endpoint--- http://mycomany.jiveon.com/api/jivelinks/v1/extstreams/1234/extactivities/{externalActivityID}/comments
Parameters:
Name Type Description externalActivityIDString extstreamObject commentObject Returns:
Promise
- Type
- Promise
-
<static> extstreams.fetchAllCommentsForExtstream(extstream, opts) → {Promise}
-
Get all comments in Jive for ALL activity of the given external stream Note pagination (next) operations are always performed inline, never on a separate node
Parameters:
Name Type Description extstreamObject an external stream object from the jive-sdk
optsObject JSON describing options for retrieving content from Jive. See above documentation.
Returns:
Promise A promise that resolves to a response. response.entity is the list of comments. See See https://developers.jivesoftware.com/api/rest/index.html#lists
- Type
- Promise
-
<static> extstreams.fetchCommentsOnActivity(activity, opts) → {Promise}
-
Get all the comments in Jive for a given activity object.
Parameters:
Name Type Description activityObject activity object
optsObject JSON describing options for retrieving content from Jive. See above documentation.
Returns:
Promise A promise that resolves to a response. response.entity is the list of comments. See See https://developers.jivesoftware.com/api/rest/index.html#lists
- Type
- Promise
-
<static> extstreams.pushActivity(tileInstance, activity) → {Promise}
-
Parameters:
Name Type Description tileInstanceObject activityObject Returns:
Promise
- Type
- Promise