Moodle - API for user registration

你。 提交于 2019-12-13 18:21:03

问题


I am integrating Magento and Moodle. Does moodle provides APIs to register users, assign user groups, create/edit/delete courses etc?


回答1:


There is a web services api - http://docs.moodle.org/20/en/How_to_create_and_enable_a_web_service

In summary:

  1. Enable the protocol - go to site admin -> plugins -> web services -> manage protocols and select the protocol required, eg REST.

  2. On the same page check Web services documentation and save changes.

  3. Read through the API documentation at site admin -> plugins -> web services -> api documentation - to find the functions required.

  4. Create an external service and add the required functions for user registration, create courses etc. site admin -> plugins -> web services -> external service

  5. Then create a token to access the service site admin -> plugins -> web services -> manage tokens



来源:https://stackoverflow.com/questions/24378790/moodle-api-for-user-registration

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!