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 activity
Object activity object returned from jive. For example, an object returned in the promise by extstreams.pushActivity method
comment
Object 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 externalActivityID
String extstream
Object comment
Object 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 extstream
Object an external stream object from the jive-sdk
opts
Object 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 activity
Object activity object
opts
Object 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 tileInstance
Object activity
Object Returns:
Promise
- Type
- Promise