Hello, i have problem to save file as submissions to assignment through web services.
I cannot save submission for specific user. I can only save submission for user, that call webservices. How can i rework web service chain below? It is even possible?
I have used with this specific order:
1, core_files_upload (this will save draft of file to moodle)
2, mod_assign_get_assignments (this will get id of assigments for courses for user)
3, mod_assign_save_submission (this will save submission as i want)
4, file is uploaded and saved in submission
I have found that i can create for every user ws token (but i dont have passwords and dont want to, cause it is not practical).
P.S. Im not .php dev, so i'll hope i can use only ws.
Thanks for help!!
Moodle 3.7 (for now)