-
Re: REST API: get messages only from specific publish\modify date
jmarleau Sep 10, 2014 1:01 PM (in response to danil)1 person found this helpfulHi,
I'm trying to find something similar and here the hint I think might help you. I am still discovering the option. I don't think the REST api allows to search base on dates. You have the recent that can help you, but, I haven't found what's the criteria for recent (is it last day, last week), I think, it's just the order of the output, most recent first, and than you can use the link/next return value to get the next elements until you hit the date you wanted or maximum number of record you wanted.
You will need your js script to make ajax call and loop, unless you have a count return value that is really high but that will affect your performance.
You can use by sort by dateCreatedDesc or latestActivityDesc
Check the content service for more options:
Jive REST Rest API v3.8 → Content service
My second though, which I haven't explored yet is the search/contents api you have the after keyword but need to be played with as when I check the Jive Apps api, it required a search keyword but the REST api doesn't say if it is required.
Good luck-
Re: REST API: get messages only from specific publish\modify date
Ryan Rutan Sep 17, 2014 1:05 PM (in response to jmarleau)Jean-Francois Marleau is has offered some good suggestions. If you need more advanced filtering/sorting by dates, I would recommend checking out the Using the V2 Jive Data Export Service (Analytics) as that API is geared around activity which is intrinsically date based.
-