More than 20 Activity Stream Entries of IBM Connections with the REST API

293 Views Asked by At

I don't know how to get more than 20 AS Entries with the IBM Connections Opensocial API. I use this url: SERVERNAME/connections/opensocial/basic/rest/activitystreams/@me/@all but there is one parameter ("itemsPerPage":20) which limits the given entires to 20.

Does anyone know how to get more than 20 entries with the Rest API?

P.S.: I dont want to change the AS in IBM Connections! I know I could edit the config to display more entries, but I want to do it with the REST API and without changing the config

3

There are 3 best solutions below

0
On

There is a parameter called page and pageSize

try this call

SERVERNAME/connections/opensocial/basic/rest/activitystreams/@me/@all?page=2&ps=20 

or

SERVERNAME/connections/opensocial/basic/rest/activitystreams/@me/@all?page=2&pageSize=20
0
On

pageand pageSizedon't work with the ActivityStream API. use the count parameter to control the max-number of returned results

0
On

try startIndex

like this

YOUR_SERVER/connections/opensocial/basic/rest/activitystreams/@me/@mentions/@all?format=json&startIndex=1

seems like startIndex serves as a "page" variable.