Forum Discussion

vaishnavi's avatar
vaishnavi
Expert
10 years ago

how to get threads which are active since last 30 days?

Hi,

I want to get threads (from a specific board) which are active since last 30 days.

Is there any existing REST API call for this requirement?

 

Any pointers for how to achieve this?

 

  • is this the ONLY way for an admin to report on how many threads are active/ closed,etc?

  • PaoloT's avatar
    PaoloT
    Lithium Alumni (Retired)

    Hi vaishnavi

     

    I can think of using the Post Stream API, ordered by date of last reply. These threads will be by definition "active in the last 30 days" because they are ordered by date of last reply, most recently active first. You can then continue to look up the stream until your timestamp is beyond the last 30 days.

     

    Hope it helps,