Forum Discussion

nicolasdarmadja's avatar
11 years ago

Get the number of posts by a user in a board

What is the REST API call to get the number of posts by a user in a certain period of time (3 months)?

 

I know we can use the method posts / in / boards / id / [board_id]. However, I want to limit the result to messages from a certain period (i.e 3 months).

 

Thanks! :D

  • HaidongG's avatar
    HaidongG
    Lithium Alumni (Retired)

    Hi nicolasdarmadja 

     

    may you try this call?

     

     "/search/messages/count?q=date%3A%5B"  + start +   "%20TO%20"  + end +  "%5D&author_id="  + author_id

     

    • "start" and "end" are UTC dates in seconds or milliseconds (both should work)
    • "author_id" is the user id.
    • Hi HaidongG,

       

      Thanks for your reply! Would it be possible to use login names instead of user id?

      Further question: Is there any documentation regarding what parameters you can use in the search/messages method?

       

      Thank you