External Application File Download

External Application File Download

by Amy Stewart -
Number of replies: 1

I am building a plugin that will allow our course creators to upload course data for students to use in an external lab.  I have an external, protected application that will set up the lab for the user, however, I need that application to download the data from Moodle.  Is there a way to log that application in and log it out in order to perform the file download?

Thanks!

Average of ratings: -
In reply to Amy Stewart

Re: External Application File Download

by Sam Chaffee -
Picture of Core developers

Sounds like it may be a good case for using Moodle's web services. I believe there is a core web service that can be used to search for files and it returns download URLs as part of the response. If the core service wouldn't work for your application creating a custom one might.