Forum Discussion

farrcycle's avatar
farrcycle
Expert
8 years ago

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 current...
  • SuzieH's avatar
    8 years ago

    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'