2013-10-22 26 views
3

我已經通過SOAP協議使用Java客戶端使用joomdle WS「joomdle_create_course」創建了一門Moodle課程。之後,我在我的個人區域上傳了一個帶有WS「core_files_upload」的SCORM包文件。 現在我想通過WS將這個Scorm文件與我的課程連接起來!我能怎麼做?使用Web服務將Scorm文件上傳到Moodle中的課程

你知道「core_files_upload」(如filearea,component,itemid,filepath ...)的參數是什麼嗎?我必須用它來確定保存在Moodle中的確切路徑中的文件嗎?

非常感謝!

回答

0

您可以找到您的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   
) 
相關問題