如何使用core_files_get_files从Moodle API获取SCORM软件包文件的URL

时间:2019-11-26 10:31:29

标签: rest moodle moodle-api

我需要从Moodle API获取我的SCORM模块文件的URL。 我只有module.idmodule.instance作为输入参数,当然还有所需的文件路径和文件名(例如/imsmanifest.xml)。我想我需要使用core_files_get_files,但是我不知道要传递哪些参数:

contextid: ??? (-1?)
component: ???
filearea: ???
itemid: ??? (is it my module.id?)
filepath: "/"
filename: "imsmanifest.xml"
(I'm omitting all non required parameters)

0 个答案:

没有答案