micha80
10 years agoExpert
Unmoderated messages between a given timerange
Hi all, I want to receive a list of unmoderated messages within a given timerange. The list of messages should also be filtered by a given board_id Actually I am using the following code: ...
- 10 years ago
I would like to recommend you use a LiQL query to get the messages you are looking for, but we unfortunately do not have support for filtering messages by moderation status in LiQL yet. Until that is available, it is possible to do a REST V1 message search with a query like the following as the value of the q parameter:
moderationStatus:unmoderated AND board_id:studio AND date:[1341341612 TO 1341946412]
The values you can choose for moderationStatus are:
- unmoderated
- flagged
- approved
- rejected
- marked_undecided
- marked_approved
- marked_rejected
(for the most part, I think you only need to use the first 4 moderation statuses above. I'm not quite clear what the last 3 are for)
You could also scope your search to a specific board rather than include the board_id field in your query.
-Doug