Stream
A custom activity stream definition for a person. See the StreamEntry
class.
Examples:
Example JSON
JSON including important fields and a Stream's resources. See the tables below for a list of all fields and resources.
{ "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", "id" : "14", "resources" : { "associations" : { "ref" : "https://example.jiveon.com/api/core/v3/streams/14/associations", "allowed" : [ "POST", "GET", "DELETE" ] }, "self" : { "ref" : "https://example.jiveon.com/api/core/v3/streams/14", "allowed" : [ "GET", "DELETE", "PUT" ] }, "html" : { "ref" : "https://example.jiveon.com/activity?streamSource=custom&streamID=14", "allowed" : [ "GET" ] }, "activity" : { "ref" : "https://example.jiveon.com/api/core/v3/streams/14/activities", "allowed" : [ "GET" ] } } }
To create a new custom stream, perform a POST to /people/{personID}/streams
.
See the Person Service and Stream Service.
The minimum JSON required to create a new Stream:
{ "name" : "Employee cat pics", "source" : "custom" }
curl -u jane.employee:password -H "Content-Type: application/json"
--data '{ "name": "Employee cat pics", "source": "custom"}' http://example.jiveon.com/api/core/v3/people/1234/streams
Fields
Field | Type | Mode † | Description |
---|---|---|---|
count | Integer | read-only | The number of activities in this stream that have been added since the last time activities were retrieved
with the Availability:Only available when retrieving one of your own streams |
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 |
newUpdates | ISO 8601 Date | read-only | Date and time denoting the last time that activities in this stream were read (with the
Availability:Only available when retrieving your own streams |
person | Person | read-only | A Person describing the person that owns this custom stream. |
previousUpdates | ISO 8601 Date | read-only | Date and time denoting the previous value of the Availability:Only available when retrieving your own streams |
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 | optional | 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. |
Resources
Resource | Method | Description |
---|---|---|
activity | GET | Return a paginated list of activities for the specified stream. Retrieves: |
associations | GET | Return a paginated list of Objects 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:
Retrieves: |
associations | POST | 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:
|
associations | DELETE | Remove an association between the specified custom stream and the specified Jive object. |
html | GET | Return the HTML representation of this stream. |
self | GET | Return an updated version of this stream. Retrieves: |
self | PUT | Update the information about this stream. Retrieves: |
self | DELETE | Delete this stream. |