How to import and organize external resources

How to import and organize external resources

by Marco Andreatta -
Number of replies: 0

Hello,

I'm writing a php batch script to import external data into a moodle instance i.e. I have to import teachers, courses and for each course some folders, files and URLs.

I was able to set up webservices access and creating users ("core_user_create_users" call), courses ("core_course_create_courses") and files ("core_files_upload").

The problem is how to create the correct skeleton into courses i.e. I need files being  visible into course sections (and into folders, if needed) to each enrolled user (teacher or student).

It looks like there is no web service to do the above task, and I couldn't find an API to do the same thing so far...

Any suggestion?

Thanks!

Marco.

Average of ratings: -