为了使用Moodle web服务创建课程,URL必须是什么样子?
示例:
全名:EDV King
简称:EDV_King
类别:无
Moodle中的web服务已激活。
我的网址:
http://localhost/moodle/webservice/rest/server.php?wstoken=MyToken&wsfunction=core_course_create_courses&moodlewsrestformat=json&courses[0][全名]='EDV_King'&courses[0][shortname]='EDV_King'&课程[0][categoryid]='1'
不幸的是,它不起作用。
错误在哪里?
谢谢大家的帮助!
这里是正确的url:
http://localhost/moodle/webservice/rest/server.php?wstoken=MyToken&wsfunction=core_course_create_courses&moodlewsrestformat=json&courses[0][全名]='EDV King'&courses[0][shortname]='EDV_King'&课程[0][categoryid]=1
此致:-(