General developer forum

External Application File Download

 
Picture of Amy Stewart
External Application File Download
 

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: -
Picture of Sam Chaffee
Re: External Application File Download
Core developersParticularly helpful Moodlers

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.

 
Average of ratings: -