简体   繁体   中英

Moodle - API for user registration

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

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM