简体   繁体   English

Moodle - 用于用户注册的API

[英]Moodle - API for user registration

I am integrating Magento and Moodle. 我正在整合Magento和Moodle。 Does moodle provides APIs to register users, assign user groups, create/edit/delete courses etc? moodle是否提供API来注册用户,分配用户组,创建/编辑/删除课程等?

There is a web services api - http://docs.moodle.org/20/en/How_to_create_and_enable_a_web_service 有一个Web服务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. 启用协议 - 转到站点管理 - >插件 - > Web服务 - >管理协议并选择所需的协议,例如REST。

  2. On the same page check Web services documentation and save changes. 在同一页面上,检查Web服务文档并保存更改。

  3. Read through the API documentation at site admin -> plugins -> web services -> api documentation - to find the functions required. 阅读站点管理员 - >插件 - > Web服务 - > api文档中的API文档,以查找所需的功能。

  4. Create an external service and add the required functions for user registration, create courses etc. site admin -> plugins -> web services -> external service 创建外部服务并为用户注册添加所需的功能,创建课程等。站点管理 - >插件 - > Web服务 - >外部服务

  5. Then create a token to access the service site admin -> plugins -> web services -> manage tokens 然后创建一个令牌来访问服务站点admin - > plugins - > web services - > manage tokens

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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