gpt4 book ai didi

web-services - 使用 Web 服务将 Scorm 文件上传到 Moodle 中的类(class)

转载 作者:行者123 更新时间:2023-12-04 04:07:58 31 4
gpt4 key购买 nike

我已经通过 SOAP 协议(protocol)使用 Java 客户端使用 joomdle WS“joomdle_create_course”创建了一个 Moodle 类(class)。之后,我在我的个人区域上传了一个带有 WS“core_files_upload”的 SCORM 包文件。现在我想通过 WS 将这个 Scorm 文件与我的类(class)链接!!我该怎么办?

你知道我必须使用哪些“core_files_upload”参数(例如文件区域、组件、itemid、文件路径...)来将文件并置在 Moodle 中当然存储的确切路径中吗?

非常感谢!

最佳答案

您可以在您的 moodle 实例中找到 API 文档

/moodle/admin/webservice/documentation.php

函数 core_files_upload 具有以下参数:

Array 
(
[contextid] => int
[component] => string
[filearea] => string
[itemid] => int
[filepath] => string
[filename] => string
[url] => string
)

关于web-services - 使用 Web 服务将 Scorm 文件上传到 Moodle 中的类(class),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/19521883/

31 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com