farrcycle
9 years agoExpert
API call to download all attachments to posts in a specific forum
Hi
We are using one particular forum to post messages that each have an attached file
We would like to be able to give users an API call that will automatically download all the files currently in that forum to a specified location.
Have looked at the documentation here but my technical knowledge is limited and wondered if anyone here had tried something similar.
Many thanks
Steve
Hi farrcycle,
Using Community API v2, you could use a LiQL query like this to get attachments from messages appearing in a specific board:
SELECT attachments FROM messages WHERE attachments.count(*) > 0 AND board.id = 'myForum'