Forum Discussion

james_scee's avatar
12 years ago

Can you get a count of threads active in a timeframe?

Via the API, can you get a count/list of active threads within a timeframe?

 

cheers

3 Replies

  • VenkS's avatar
    VenkS
    Lithium Alumni (Retired)
    12 years ago

    It looks like there isn't a way to do this using our current REST API. I've created an enhancement request to be able to use 'date_start' and 'date_end' parameters when making threads/recent (and similar such) calls.

  • This may do what you need.

     

    example:

    /restapi/vc/search/messages?q=date%3A%5B1356958800%20TO%201362056400%5D

     

    format:

    /restapi/vc/search/messages?q=date%3A%5B +  from_date + %20TO%20 + to_date + %5D

    from_date/to_date: seconds, not miliseconds

     

    count:

    /restapi/vc/search/messages/count?q=.......

  • VenkS's avatar
    VenkS
    Lithium Alumni (Retired)
    12 years ago
    Excellent idea, I didn't think of that! Does this work for /threads too?