osapi.jive.corev3.activities.Stream
A custom activity stream definition for a person. See the StreamEntry
class.
Example:
Example JSON
JSON with the most important data for a Stream. See the table below for a list of all fields.
{ "type" : "stream", "name" : "Personal Stream", "person" : { "name" : { "formatted" : "Administrator" }, "type" : "person", "displayName" : "Administrator", "id" : "1" }, "source" : "custom", "receiveEmails" : false, "published" : "2012-07-13T22:27:07.331+0000", "updated" : "2012-07-13T22:27:07.331+0000" }
Resources
Properties
Property | Type | Mode † | Description |
---|---|---|---|
id | String | read-only | ↑ Unique identifier of this custom stream. |
name | String | required | ↑ Name of this custom stream. Will be a zero length string on custom streams
with a source other than |
person | Person | read-only | ↑ A Person describing the person that owns this custom stream. |
published | ISO 8601 Date | read-only | ↑ Date and time this custom stream was originally created. |
receiveEmails | Boolean | optional | ↑ Flag indicating whether the owner of this custom stream wants to receive email when new activity arrives. |
resources | Object | read-only | ↑ Resource links (and related permissions for the requesting person) relevant to this object. |
source | String | required | ↑ Source of this particular stream. Custom streams managed via this API MUST
have a stream source of
|
type | String | read-only | ↑ The object type of this object ("stream"). |
updated | ISO 8601 Date | read-only | ↑ Date and time this custom stream configuration was most recently updated. |
Methods
createAssociations(list)
POST /streams/1234/associations
Retrieves
--
Description
Add associations between the specified custom stream and the list of specified Jive objects. This is an all or nothing operation; if any individual attempt to associate fails, all previously successful attempts will be rolled back.
Takes:
- objectURIs the object URIs of the objects to be associated
destroyAssociations()
DELETE /streams/1234/associations
Retrieves
Object
Description
Remove an association between the specified custom stream and the specified Jive object.
get(options)
GET /streams/1234
Retrieves
Stream
Description
Return an updated version of this stream.
Options:
Name | Type | Required | Description |
---|---|---|---|
fields | String | false | The names of the fields to be returned |
Retrieves:
getActivity(options)
GET /streams/1234/activities
Retrieves
Activity[]
Description
Return a paginated list of activities for the specified stream.
Options:
Name | Type | Required | Description |
---|---|---|---|
after | String | false | Date and time representing the minimum 'last activity in a collection' timestamp for selecting activities. Cannot specify both after and before |
before | String | false | Date and time representing the maximum 'last activity in a collection' timestamp for selecting activities. Cannot specify both after and before |
count | Integer | false | Maximum number of replies to return (default is 25) |
fields | String | false | Names of the fields to be returned |
Retrieves:
getAssociations(options)
GET /streams/1234/associations
Retrieves
Object[]
Description
Return a paginated list of for Jive objects that are associated with the specified stream, and match the optionally specified filters.
The following filter expressions are supported by this service:
- type(xxx) - Filter by object type(s), where xxx is a comma delimited list of the object types you want returned (document, group, etc.)
Options:
Name | Type | Required | Description |
---|---|---|---|
count | Integer | false | The maximum number of replies to return (default is 25) |
fields | String | false | The names of the fields to be returned |
startIndex | Integer | false | Zero-relative index of the first reply to return (default is 0) |
type | String | false | Filter by object type(s), Values must be separated by commas list. Example: (document, group) |
Retrieves:
Resources
Resource | Method | Returns | Description |
---|---|---|---|
html | GET | Object | ↑ Return the HTML representation of this stream. |