Forum Discussion
HaidongG
11 years agoLithium Alumni (Retired)
Hi Bryan,
As I know /topics/style/board/recent may not provide the board inclusion or exclusion feature. you may consider to user /search api
for example, in your example,
/search/messages?include_forums=true&sort_by=-date&collapse_discussion=true&board_ids=pmA,tcB
- include_forums=true means to get messages under boards only, no TKB, no idea
- sort_by=-date means to get messages in desc order
- collapse_discussion=ture means to get topics only, no need to include replies
- boards_id means a comma separated list of boards
I hope that my answer helps.
btw: if you worried about the user right, if user has no access to board X and board Y, no post from those boards will be shown with your REST API calls (no matter /recent or /search) with freemarker "rest("/......")"
Related Content
- 2 years ago
- 2 years ago
- 11 years ago
- 2 years ago
- 2 years ago