<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://docs.moodle.org/dev/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Saint-georges</id>
	<title>MoodleDocs - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://docs.moodle.org/dev/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Saint-georges"/>
	<link rel="alternate" type="text/html" href="https://docs.moodle.org/dev/Special:Contributions/Saint-georges"/>
	<updated>2026-04-23T20:00:39Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.43.5</generator>
	<entry>
		<id>https://docs.moodle.org/dev/index.php?title=Talk:Web_services&amp;diff=27205</id>
		<title>Talk:Web services</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/dev/index.php?title=Talk:Web_services&amp;diff=27205"/>
		<updated>2008-01-03T13:35:17Z</updated>

		<summary type="html">&lt;p&gt;Saint-georges: /* output of operations: adding URLs? */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==general remarks about OUTPUT of operations:==&lt;br /&gt;
Is true of false informative enough ?&lt;br /&gt;
Should the API have some sort of &amp;quot;last_error&amp;quot; function giving back more details such as &amp;quot;non existing course, non existing user, duplicate entry ...)&lt;br /&gt;
Shall we consider that affecting a role that already exist or removing role that do not exist as an error (output=false) or not (output=true)&lt;br /&gt;
:yep, agree, I&#039;d result always one well defined $result object, with his status, error code and error msg (and perhaps, the whole original WS request encapsulated for easier debugging).&lt;br /&gt;
:[[User:Eloy Lafuente (stronk7)|Eloy Lafuente (stronk7)]] 19:55, 21 December 2007 (CST)&lt;br /&gt;
I agree but throught the WS we need to be  be carefull with the feedback we give to errors, due to security issues. --[[User:Ludo (Marc Alier)|Ludo (Marc Alier)]] 14:14, 22 December 2007 (CST)&lt;br /&gt;
&lt;br /&gt;
==some WS to be able to... build courses ?==&lt;br /&gt;
Perhpas it would be a great idea to start thinking about some WS functionalities like this:&lt;br /&gt;
&lt;br /&gt;
* add_course, delete_course, reset_course&lt;br /&gt;
* add_section, delete_section, show_section, hide_section&lt;br /&gt;
* add_activity, delete_activity, show_activity, hide_activity&lt;br /&gt;
&lt;br /&gt;
Apart from the WS utility itself: automated creation of courses... it would help (or force, as we prefer), to better encapsulate course/section/modules internals, 100% isolating the creation and configuration from the frontend (forms, WS...). It implies some decisions, like upwards compatibility of old modules (although I think it can be maintained)... and so on, you know.&lt;br /&gt;
&lt;br /&gt;
Just one idea to analyse. But with benefits in the end, IMO.&lt;br /&gt;
[[User:Eloy Lafuente (stronk7)|Eloy Lafuente (stronk7)]] 20:02, 21 December 2007 (CST)&lt;br /&gt;
&lt;br /&gt;
I do agree with this ; this would also allow creation of specific courses, customized for some users, depending of their &amp;quot;performances&amp;quot; in external evaluations methods ; when the ePortfolio API will be finalized in Moodle core&#039;s, accessing the portfolio of any user would be  needed.&lt;br /&gt;
[[User:Patrick Pollet|Patrick Pollet]] 04:21, 30 December 2007 (CST)&lt;br /&gt;
&lt;br /&gt;
==the problem of ID of entity to fetch:==&lt;br /&gt;
In the list of API calls defined in this page, Moodle entity to process (user,course,grade,event ...) is identified by an ID, that is implicitly the Moodle&#039;s internal id field used in the database. This raises a problem since it is very likely that in the &amp;quot;external SIS&amp;quot; talking to Moodle across the Web Service, the entity will be identified by another attribute such as an idNumber (user,course), a short name (course) or even an username (login of user). &lt;br /&gt;
&lt;br /&gt;
So either we must provide :&lt;br /&gt;
&lt;br /&gt;
* extra API calls to convert external identifiers to Moodle&#039;s internal id, such as user_id_from_idnumber, user_id_from_username, course_id_from_shortname ..., at the cost of extra calls   before the real one ; three calls would be needed to enrol student &amp;quot;CS2121212&amp;quot;, to course &amp;quot;JAVA_101&amp;quot;. &lt;br /&gt;
&lt;br /&gt;
* extra API functions such as delete_user_byusername, get_course_by_idnumber , enrol_student_byidnumber_tocourse_byshortname ....&lt;br /&gt;
&lt;br /&gt;
* or add parameters to the current API calls specifiying what identifier we are using  such as delete_user(id,idField) with idField being a string that could be &amp;quot;id&amp;quot;,&amp;quot;idnumber&amp;quot;,&amp;quot;username&amp;quot;,&amp;quot;email&amp;quot; ... or enrol_student(sid,&amp;quot;idnumber&amp;quot;,cid,&amp;quot;shortname&amp;quot;) . This is the approach in the current SOAP implementation (with some calls of the previous type (get_user_byusername()...)   &lt;br /&gt;
&lt;br /&gt;
[[User:Patrick Pollet|Patrick Pollet]] 04:21, 30 December 2007 (CST)&lt;br /&gt;
&lt;br /&gt;
== output of operations: adding URLs?==&lt;br /&gt;
In addition, I suggest to return the full URL towards every Moodle entity, either added or got.&lt;br /&gt;
* user added with id 12345 --&amp;gt; http://moodle.xxx.edu/user/view.php?id=12345&amp;amp;course=1&lt;br /&gt;
* got user 12345 --&amp;gt; http://moodle.xxx.edu/user/view.php?id=12345&amp;amp;course=1&lt;br /&gt;
* course added with id 67 --&amp;gt; http://moodle.xxx.edu/course/view.php?id=67&lt;br /&gt;
* got course 67 --&amp;gt; http://moodle.xxx.edu/course/view.php?id=67&lt;br /&gt;
* etc.&lt;br /&gt;
&lt;br /&gt;
Today, in my uPortal installation, I request for Moodle database and display a list of courses in which the connected user is enrolled. Of course I provide links to these courses so that he can directly access. In addition I display a list of the last changes in these courses, again with links to the resources/activities.&lt;br /&gt;
&lt;br /&gt;
If the URLs are returned by the WS then the calling service has nothing to know about Moodle URLs. Else it has to build every URL by aggregating Moodle alias + adequate PHP script + entity ID&lt;/div&gt;</summary>
		<author><name>Saint-georges</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/dev/index.php?title=Talk:Web_services&amp;diff=27204</id>
		<title>Talk:Web services</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/dev/index.php?title=Talk:Web_services&amp;diff=27204"/>
		<updated>2008-01-03T10:57:56Z</updated>

		<summary type="html">&lt;p&gt;Saint-georges: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==general remarks about OUTPUT of operations:==&lt;br /&gt;
Is true of false informative enough ?&lt;br /&gt;
Should the API have some sort of &amp;quot;last_error&amp;quot; function giving back more details such as &amp;quot;non existing course, non existing user, duplicate entry ...)&lt;br /&gt;
Shall we consider that affecting a role that already exist or removing role that do not exist as an error (output=false) or not (output=true)&lt;br /&gt;
:yep, agree, I&#039;d result always one well defined $result object, with his status, error code and error msg (and perhaps, the whole original WS request encapsulated for easier debugging).&lt;br /&gt;
:[[User:Eloy Lafuente (stronk7)|Eloy Lafuente (stronk7)]] 19:55, 21 December 2007 (CST)&lt;br /&gt;
I agree but throught the WS we need to be  be carefull with the feedback we give to errors, due to security issues. --[[User:Ludo (Marc Alier)|Ludo (Marc Alier)]] 14:14, 22 December 2007 (CST)&lt;br /&gt;
&lt;br /&gt;
==some WS to be able to... build courses ?==&lt;br /&gt;
Perhpas it would be a great idea to start thinking about some WS functionalities like this:&lt;br /&gt;
&lt;br /&gt;
* add_course, delete_course, reset_course&lt;br /&gt;
* add_section, delete_section, show_section, hide_section&lt;br /&gt;
* add_activity, delete_activity, show_activity, hide_activity&lt;br /&gt;
&lt;br /&gt;
Apart from the WS utility itself: automated creation of courses... it would help (or force, as we prefer), to better encapsulate course/section/modules internals, 100% isolating the creation and configuration from the frontend (forms, WS...). It implies some decisions, like upwards compatibility of old modules (although I think it can be maintained)... and so on, you know.&lt;br /&gt;
&lt;br /&gt;
Just one idea to analyse. But with benefits in the end, IMO.&lt;br /&gt;
[[User:Eloy Lafuente (stronk7)|Eloy Lafuente (stronk7)]] 20:02, 21 December 2007 (CST)&lt;br /&gt;
&lt;br /&gt;
I do agree with this ; this would also allow creation of specific courses, customized for some users, depending of their &amp;quot;performances&amp;quot; in external evaluations methods ; when the ePortfolio API will be finalized in Moodle core&#039;s, accessing the portfolio of any user would be  needed.&lt;br /&gt;
[[User:Patrick Pollet|Patrick Pollet]] 04:21, 30 December 2007 (CST)&lt;br /&gt;
&lt;br /&gt;
==the problem of ID of entity to fetch:==&lt;br /&gt;
In the list of API calls defined in this page, Moodle entity to process (user,course,grade,event ...) is identified by an ID, that is implicitly the Moodle&#039;s internal id field used in the database. This raises a problem since it is very likely that in the &amp;quot;external SIS&amp;quot; talking to Moodle across the Web Service, the entity will be identified by another attribute such as an idNumber (user,course), a short name (course) or even an username (login of user). &lt;br /&gt;
&lt;br /&gt;
So either we must provide :&lt;br /&gt;
&lt;br /&gt;
* extra API calls to convert external identifiers to Moodle&#039;s internal id, such as user_id_from_idnumber, user_id_from_username, course_id_from_shortname ..., at the cost of extra calls   before the real one ; three calls would be needed to enrol student &amp;quot;CS2121212&amp;quot;, to course &amp;quot;JAVA_101&amp;quot;. &lt;br /&gt;
&lt;br /&gt;
* extra API functions such as delete_user_byusername, get_course_by_idnumber , enrol_student_byidnumber_tocourse_byshortname ....&lt;br /&gt;
&lt;br /&gt;
* or add parameters to the current API calls specifiying what identifier we are using  such as delete_user(id,idField) with idField being a string that could be &amp;quot;id&amp;quot;,&amp;quot;idnumber&amp;quot;,&amp;quot;username&amp;quot;,&amp;quot;email&amp;quot; ... or enrol_student(sid,&amp;quot;idnumber&amp;quot;,cid,&amp;quot;shortname&amp;quot;) . This is the approach in the current SOAP implementation (with some calls of the previous type (get_user_byusername()...)   &lt;br /&gt;
&lt;br /&gt;
[[User:Patrick Pollet|Patrick Pollet]] 04:21, 30 December 2007 (CST)&lt;br /&gt;
&lt;br /&gt;
== output of operations: adding URLs?==&lt;br /&gt;
In addition, I suggest to return the full URL towards every Moodle entity, either added or got.&lt;br /&gt;
* user added with id 12345 --&amp;gt; http://moodle.xxx.edu/user/view.php?id=12345&amp;amp;course=1&lt;br /&gt;
* got user 12345 --&amp;gt; http://moodle.xxx.edu/user/view.php?id=12345&amp;amp;course=1&lt;br /&gt;
* course added with id 67 --&amp;gt; http://moodle.xxx.edu/course/view.php?id=67&lt;br /&gt;
* got course 67 --&amp;gt; http://moodle.xxx.edu/course/view.php?id=67&lt;br /&gt;
* etc.&lt;br /&gt;
&lt;br /&gt;
Today, in my uPortal installation, I request for Moodle database and display a list of courses in which the connected user is enrolled. Of course I provide links to these courses so that he can directly access. In addition I display a list of the last changes in these courses, again with links to the resources/activities.&lt;br /&gt;
&lt;br /&gt;
If the URLs are returned by the WS then the calling service has not to know about Moodle URLs. Else it has to build every URL by aggregating Moodle alias + adequate PHP script + entity ID&lt;/div&gt;</summary>
		<author><name>Saint-georges</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/dev/index.php?title=Web_services&amp;diff=7234</id>
		<title>Web services</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/dev/index.php?title=Web_services&amp;diff=7234"/>
		<updated>2007-12-20T16:16:57Z</updated>

		<summary type="html">&lt;p&gt;Saint-georges: /* get last changes in my courses */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This page is to decide on a STANDARD list of CORE web service functions that we should support in Moodle (by XMLRPC, REST and SOAP) as an API for those writing code to work against Moodle.&lt;br /&gt;
&lt;br /&gt;
Please add new functions if there&#039;s functionality you want that isn&#039;t covered (we can refactor/whittle at the end).&lt;br /&gt;
&lt;br /&gt;
==add user==&lt;br /&gt;
I think we should require all data needed for a successful &amp;quot;first login&amp;quot; to Moodle without popping him out the profile page to fill in all missing required data. This may require extra inputs such as city, description ... (unsure of the full list depending of Moodle version ?).&lt;br /&gt;
Also password should be &amp;quot;required&amp;quot; if authentication method is &amp;quot;internal&amp;quot; . &lt;br /&gt;
&lt;br /&gt;
INPUT:&lt;br /&gt;
    firstname&lt;br /&gt;
    lastname&lt;br /&gt;
    email &lt;br /&gt;
    idnumber&lt;br /&gt;
    login &lt;br /&gt;
    authentication method (optional , default= manual ?)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
OPERATION:&lt;br /&gt;
    Adds a new user to the user database &lt;br /&gt;
&lt;br /&gt;
OUTPUT:&lt;br /&gt;
    id or false&lt;br /&gt;
&lt;br /&gt;
==delete user==&lt;br /&gt;
INPUT:&lt;br /&gt;
    idnumber  or &lt;br /&gt;
    email or &lt;br /&gt;
    id or&lt;br /&gt;
    login&lt;br /&gt;
&lt;br /&gt;
OPERATION:&lt;br /&gt;
    User is marked as deleted&lt;br /&gt;
    All it&#039;s role assignments are destroyed &lt;br /&gt;
OUTPUT:&lt;br /&gt;
    true/false&lt;br /&gt;
&lt;br /&gt;
==add course==&lt;br /&gt;
INPUT:&lt;br /&gt;
    name&lt;br /&gt;
    shortname&lt;br /&gt;
    format (default topics)&lt;br /&gt;
    idnumber &lt;br /&gt;
&lt;br /&gt;
OPERATION:&lt;br /&gt;
    Adds a new course to the course table&lt;br /&gt;
&lt;br /&gt;
OUTPUT:&lt;br /&gt;
    id or false&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==delete course==&lt;br /&gt;
INPUT:&lt;br /&gt;
    name OR&lt;br /&gt;
    shortname  OR&lt;br /&gt;
    idnumber OR&lt;br /&gt;
    id&lt;br /&gt;
&lt;br /&gt;
OPERATION:&lt;br /&gt;
    Deletes a course from the course table&lt;br /&gt;
    What about associated ressources, roles ... &lt;br /&gt;
&lt;br /&gt;
OUTPUT:&lt;br /&gt;
    true or false&lt;br /&gt;
&lt;br /&gt;
==enrol student to course==&lt;br /&gt;
INPUT:&lt;br /&gt;
    course unique Id (Moodle&#039;s ID or idnumber or shortname)&lt;br /&gt;
    student unique id (Moodle&#039;s ID or idnumber or login or email)&lt;br /&gt;
&lt;br /&gt;
OPERATION:&lt;br /&gt;
    Assign student role to course &lt;br /&gt;
&lt;br /&gt;
OUTPUT:&lt;br /&gt;
    true or false&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==unenrol student from course==&lt;br /&gt;
INPUT:&lt;br /&gt;
    course unique Id (Moodle&#039;s ID or idnumber or shortname)&lt;br /&gt;
    student unique id (Moodle&#039;s ID or idnumber or login or email)&lt;br /&gt;
&lt;br /&gt;
OPERATION:&lt;br /&gt;
    remove student role from course &lt;br /&gt;
&lt;br /&gt;
OUTPUT:&lt;br /&gt;
    true or false&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==assign role to course==&lt;br /&gt;
INPUT:&lt;br /&gt;
   course unique Id (Moodle&#039;s ID or idnumber or shortname)&lt;br /&gt;
   user unique id (Moodle&#039;s ID or idnumber or login or email)&lt;br /&gt;
   role id (teacher, non editing teacher, student (?) ...)&lt;br /&gt;
&lt;br /&gt;
OPERATION:&lt;br /&gt;
   assign given user a &amp;quot;standard&amp;quot; role to given course   &lt;br /&gt;
&lt;br /&gt;
OUTPUT:&lt;br /&gt;
    true or false&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==remove role from course==&lt;br /&gt;
INPUT:&lt;br /&gt;
   course unique Id (Moodle&#039;s ID or idnumber or shortname)&lt;br /&gt;
   user unique id (Moodle&#039;s ID or idnumber or login or email)&lt;br /&gt;
   role id (teacher, non editing teacher, student (?) ...)&lt;br /&gt;
&lt;br /&gt;
OPERATION:&lt;br /&gt;
   remove given user&#039;s &amp;quot;standard&amp;quot; role from given course   &lt;br /&gt;
&lt;br /&gt;
OUTPUT:&lt;br /&gt;
    true or false&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==get my courses==&lt;br /&gt;
&lt;br /&gt;
INPUT:&lt;br /&gt;
   user unique id (Moodle&#039;s ID or idnumber or login or email)&lt;br /&gt;
&lt;br /&gt;
OPERATION:&lt;br /&gt;
   return a &amp;quot;list&amp;quot; of course&#039;s id in which given user move given user has some role assigned     &lt;br /&gt;
&lt;br /&gt;
OUTPUT:&lt;br /&gt;
    &amp;quot;array&amp;quot; of (course id, course shortname, course fullname, role id, role name, course url)&lt;br /&gt;
    or false in case of error (bad user id)&lt;br /&gt;
&lt;br /&gt;
==get last changes in my courses==&lt;br /&gt;
&lt;br /&gt;
INPUT:&lt;br /&gt;
   user unique id (Moodle&#039;s ID or idnumber or login or email)&lt;br /&gt;
   course unique Id (Moodle&#039;s ID or shortname) - optional (default = all my courses)&lt;br /&gt;
   timestamp - optional (default = time of last connexion in every course)&lt;br /&gt;
&lt;br /&gt;
OPERATION:&lt;br /&gt;
   return a &amp;quot;list&amp;quot; of changes (resource added/modified, new activities, etc.) for courses in which given user has some role assigned - since timestamp or last connexion in given course &lt;br /&gt;
&lt;br /&gt;
OUTPUT:&lt;br /&gt;
    &amp;quot;array&amp;quot; of (course id, course shortname, course fullname, role id, role name, url of the resource/activity, time of change)&lt;br /&gt;
    or false in case of error (bad user/course id)&lt;/div&gt;</summary>
		<author><name>Saint-georges</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/dev/index.php?title=Web_services&amp;diff=7233</id>
		<title>Web services</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/dev/index.php?title=Web_services&amp;diff=7233"/>
		<updated>2007-12-20T16:15:15Z</updated>

		<summary type="html">&lt;p&gt;Saint-georges: /* get my courses */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This page is to decide on a STANDARD list of CORE web service functions that we should support in Moodle (by XMLRPC, REST and SOAP) as an API for those writing code to work against Moodle.&lt;br /&gt;
&lt;br /&gt;
Please add new functions if there&#039;s functionality you want that isn&#039;t covered (we can refactor/whittle at the end).&lt;br /&gt;
&lt;br /&gt;
==add user==&lt;br /&gt;
I think we should require all data needed for a successful &amp;quot;first login&amp;quot; to Moodle without popping him out the profile page to fill in all missing required data. This may require extra inputs such as city, description ... (unsure of the full list depending of Moodle version ?).&lt;br /&gt;
Also password should be &amp;quot;required&amp;quot; if authentication method is &amp;quot;internal&amp;quot; . &lt;br /&gt;
&lt;br /&gt;
INPUT:&lt;br /&gt;
    firstname&lt;br /&gt;
    lastname&lt;br /&gt;
    email &lt;br /&gt;
    idnumber&lt;br /&gt;
    login &lt;br /&gt;
    authentication method (optional , default= manual ?)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
OPERATION:&lt;br /&gt;
    Adds a new user to the user database &lt;br /&gt;
&lt;br /&gt;
OUTPUT:&lt;br /&gt;
    id or false&lt;br /&gt;
&lt;br /&gt;
==delete user==&lt;br /&gt;
INPUT:&lt;br /&gt;
    idnumber  or &lt;br /&gt;
    email or &lt;br /&gt;
    id or&lt;br /&gt;
    login&lt;br /&gt;
&lt;br /&gt;
OPERATION:&lt;br /&gt;
    User is marked as deleted&lt;br /&gt;
    All it&#039;s role assignments are destroyed &lt;br /&gt;
OUTPUT:&lt;br /&gt;
    true/false&lt;br /&gt;
&lt;br /&gt;
==add course==&lt;br /&gt;
INPUT:&lt;br /&gt;
    name&lt;br /&gt;
    shortname&lt;br /&gt;
    format (default topics)&lt;br /&gt;
    idnumber &lt;br /&gt;
&lt;br /&gt;
OPERATION:&lt;br /&gt;
    Adds a new course to the course table&lt;br /&gt;
&lt;br /&gt;
OUTPUT:&lt;br /&gt;
    id or false&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==delete course==&lt;br /&gt;
INPUT:&lt;br /&gt;
    name OR&lt;br /&gt;
    shortname  OR&lt;br /&gt;
    idnumber OR&lt;br /&gt;
    id&lt;br /&gt;
&lt;br /&gt;
OPERATION:&lt;br /&gt;
    Deletes a course from the course table&lt;br /&gt;
    What about associated ressources, roles ... &lt;br /&gt;
&lt;br /&gt;
OUTPUT:&lt;br /&gt;
    true or false&lt;br /&gt;
&lt;br /&gt;
==enrol student to course==&lt;br /&gt;
INPUT:&lt;br /&gt;
    course unique Id (Moodle&#039;s ID or idnumber or shortname)&lt;br /&gt;
    student unique id (Moodle&#039;s ID or idnumber or login or email)&lt;br /&gt;
&lt;br /&gt;
OPERATION:&lt;br /&gt;
    Assign student role to course &lt;br /&gt;
&lt;br /&gt;
OUTPUT:&lt;br /&gt;
    true or false&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==unenrol student from course==&lt;br /&gt;
INPUT:&lt;br /&gt;
    course unique Id (Moodle&#039;s ID or idnumber or shortname)&lt;br /&gt;
    student unique id (Moodle&#039;s ID or idnumber or login or email)&lt;br /&gt;
&lt;br /&gt;
OPERATION:&lt;br /&gt;
    remove student role from course &lt;br /&gt;
&lt;br /&gt;
OUTPUT:&lt;br /&gt;
    true or false&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==assign role to course==&lt;br /&gt;
INPUT:&lt;br /&gt;
   course unique Id (Moodle&#039;s ID or idnumber or shortname)&lt;br /&gt;
   user unique id (Moodle&#039;s ID or idnumber or login or email)&lt;br /&gt;
   role id (teacher, non editing teacher, student (?) ...)&lt;br /&gt;
&lt;br /&gt;
OPERATION:&lt;br /&gt;
   assign given user a &amp;quot;standard&amp;quot; role to given course   &lt;br /&gt;
&lt;br /&gt;
OUTPUT:&lt;br /&gt;
    true or false&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==remove role from course==&lt;br /&gt;
INPUT:&lt;br /&gt;
   course unique Id (Moodle&#039;s ID or idnumber or shortname)&lt;br /&gt;
   user unique id (Moodle&#039;s ID or idnumber or login or email)&lt;br /&gt;
   role id (teacher, non editing teacher, student (?) ...)&lt;br /&gt;
&lt;br /&gt;
OPERATION:&lt;br /&gt;
   remove given user&#039;s &amp;quot;standard&amp;quot; role from given course   &lt;br /&gt;
&lt;br /&gt;
OUTPUT:&lt;br /&gt;
    true or false&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==get my courses==&lt;br /&gt;
&lt;br /&gt;
INPUT:&lt;br /&gt;
   user unique id (Moodle&#039;s ID or idnumber or login or email)&lt;br /&gt;
&lt;br /&gt;
OPERATION:&lt;br /&gt;
   return a &amp;quot;list&amp;quot; of course&#039;s id in which given user move given user has some role assigned     &lt;br /&gt;
&lt;br /&gt;
OUTPUT:&lt;br /&gt;
    &amp;quot;array&amp;quot; of (course id, course shortname, course fullname, role id, role name, course url)&lt;br /&gt;
    or false in case of error (bad user id)&lt;br /&gt;
&lt;br /&gt;
==get last changes in my courses==&lt;br /&gt;
&lt;br /&gt;
INPUT:&lt;br /&gt;
   user unique id (Moodle&#039;s ID or idnumber or login or email)&lt;br /&gt;
   course unique Id (Moodle&#039;s ID or shortname) - optional (default = all my courses)&lt;br /&gt;
   timestamp - optional (default = time of last connexion in every course)&lt;br /&gt;
&lt;br /&gt;
OPERATION:&lt;br /&gt;
   return a &amp;quot;list&amp;quot; of changes (resource added/modified, new activities, etc.) for courses in which given user has some role assigned - since timestamp or last connexion in given course &lt;br /&gt;
&lt;br /&gt;
OUTPUT:&lt;br /&gt;
    &amp;quot;array&amp;quot; of (course id, role id, url of the resource/activity, time of change)&lt;br /&gt;
    or false in case of error (bad user/course id)&lt;/div&gt;</summary>
		<author><name>Saint-georges</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/dev/index.php?title=Web_services&amp;diff=7232</id>
		<title>Web services</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/dev/index.php?title=Web_services&amp;diff=7232"/>
		<updated>2007-12-20T16:04:21Z</updated>

		<summary type="html">&lt;p&gt;Saint-georges: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This page is to decide on a STANDARD list of CORE web service functions that we should support in Moodle (by XMLRPC, REST and SOAP) as an API for those writing code to work against Moodle.&lt;br /&gt;
&lt;br /&gt;
Please add new functions if there&#039;s functionality you want that isn&#039;t covered (we can refactor/whittle at the end).&lt;br /&gt;
&lt;br /&gt;
==add user==&lt;br /&gt;
I think we should require all data needed for a successful &amp;quot;first login&amp;quot; to Moodle without popping him out the profile page to fill in all missing required data. This may require extra inputs such as city, description ... (unsure of the full list depending of Moodle version ?).&lt;br /&gt;
Also password should be &amp;quot;required&amp;quot; if authentication method is &amp;quot;internal&amp;quot; . &lt;br /&gt;
&lt;br /&gt;
INPUT:&lt;br /&gt;
    firstname&lt;br /&gt;
    lastname&lt;br /&gt;
    email &lt;br /&gt;
    idnumber&lt;br /&gt;
    login &lt;br /&gt;
    authentication method (optional , default= manual ?)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
OPERATION:&lt;br /&gt;
    Adds a new user to the user database &lt;br /&gt;
&lt;br /&gt;
OUTPUT:&lt;br /&gt;
    id or false&lt;br /&gt;
&lt;br /&gt;
==delete user==&lt;br /&gt;
INPUT:&lt;br /&gt;
    idnumber  or &lt;br /&gt;
    email or &lt;br /&gt;
    id or&lt;br /&gt;
    login&lt;br /&gt;
&lt;br /&gt;
OPERATION:&lt;br /&gt;
    User is marked as deleted&lt;br /&gt;
    All it&#039;s role assignments are destroyed &lt;br /&gt;
OUTPUT:&lt;br /&gt;
    true/false&lt;br /&gt;
&lt;br /&gt;
==add course==&lt;br /&gt;
INPUT:&lt;br /&gt;
    name&lt;br /&gt;
    shortname&lt;br /&gt;
    format (default topics)&lt;br /&gt;
    idnumber &lt;br /&gt;
&lt;br /&gt;
OPERATION:&lt;br /&gt;
    Adds a new course to the course table&lt;br /&gt;
&lt;br /&gt;
OUTPUT:&lt;br /&gt;
    id or false&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==delete course==&lt;br /&gt;
INPUT:&lt;br /&gt;
    name OR&lt;br /&gt;
    shortname  OR&lt;br /&gt;
    idnumber OR&lt;br /&gt;
    id&lt;br /&gt;
&lt;br /&gt;
OPERATION:&lt;br /&gt;
    Deletes a course from the course table&lt;br /&gt;
    What about associated ressources, roles ... &lt;br /&gt;
&lt;br /&gt;
OUTPUT:&lt;br /&gt;
    true or false&lt;br /&gt;
&lt;br /&gt;
==enrol student to course==&lt;br /&gt;
INPUT:&lt;br /&gt;
    course unique Id (Moodle&#039;s ID or idnumber or shortname)&lt;br /&gt;
    student unique id (Moodle&#039;s ID or idnumber or login or email)&lt;br /&gt;
&lt;br /&gt;
OPERATION:&lt;br /&gt;
    Assign student role to course &lt;br /&gt;
&lt;br /&gt;
OUTPUT:&lt;br /&gt;
    true or false&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==unenrol student from course==&lt;br /&gt;
INPUT:&lt;br /&gt;
    course unique Id (Moodle&#039;s ID or idnumber or shortname)&lt;br /&gt;
    student unique id (Moodle&#039;s ID or idnumber or login or email)&lt;br /&gt;
&lt;br /&gt;
OPERATION:&lt;br /&gt;
    remove student role from course &lt;br /&gt;
&lt;br /&gt;
OUTPUT:&lt;br /&gt;
    true or false&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==assign role to course==&lt;br /&gt;
INPUT:&lt;br /&gt;
   course unique Id (Moodle&#039;s ID or idnumber or shortname)&lt;br /&gt;
   user unique id (Moodle&#039;s ID or idnumber or login or email)&lt;br /&gt;
   role id (teacher, non editing teacher, student (?) ...)&lt;br /&gt;
&lt;br /&gt;
OPERATION:&lt;br /&gt;
   assign given user a &amp;quot;standard&amp;quot; role to given course   &lt;br /&gt;
&lt;br /&gt;
OUTPUT:&lt;br /&gt;
    true or false&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==remove role from course==&lt;br /&gt;
INPUT:&lt;br /&gt;
   course unique Id (Moodle&#039;s ID or idnumber or shortname)&lt;br /&gt;
   user unique id (Moodle&#039;s ID or idnumber or login or email)&lt;br /&gt;
   role id (teacher, non editing teacher, student (?) ...)&lt;br /&gt;
&lt;br /&gt;
OPERATION:&lt;br /&gt;
   remove given user&#039;s &amp;quot;standard&amp;quot; role from given course   &lt;br /&gt;
&lt;br /&gt;
OUTPUT:&lt;br /&gt;
    true or false&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==get my courses==&lt;br /&gt;
&lt;br /&gt;
INPUT:&lt;br /&gt;
   user unique id (Moodle&#039;s ID or idnumber or login or email)&lt;br /&gt;
&lt;br /&gt;
OPERATION:&lt;br /&gt;
   return a &amp;quot;list&amp;quot; of course&#039;s id in which given user move given user has some role assigned     &lt;br /&gt;
&lt;br /&gt;
OUTPUT:&lt;br /&gt;
    &amp;quot;array&amp;quot; of (course id, role id, course url)&lt;br /&gt;
    or false in case of error (bad user id)&lt;br /&gt;
&lt;br /&gt;
==get last changes in my courses==&lt;br /&gt;
&lt;br /&gt;
INPUT:&lt;br /&gt;
   user unique id (Moodle&#039;s ID or idnumber or login or email)&lt;br /&gt;
   course unique Id (Moodle&#039;s ID or shortname) - optional (default = all my courses)&lt;br /&gt;
   timestamp - optional (default = time of last connexion in every course)&lt;br /&gt;
&lt;br /&gt;
OPERATION:&lt;br /&gt;
   return a &amp;quot;list&amp;quot; of changes (resource added/modified, new activities, etc.) for courses in which given user has some role assigned - since timestamp or last connexion in given course &lt;br /&gt;
&lt;br /&gt;
OUTPUT:&lt;br /&gt;
    &amp;quot;array&amp;quot; of (course id, role id, url of the resource/activity, time of change)&lt;br /&gt;
    or false in case of error (bad user/course id)&lt;/div&gt;</summary>
		<author><name>Saint-georges</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/dev/index.php?title=Web_services&amp;diff=7231</id>
		<title>Web services</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/dev/index.php?title=Web_services&amp;diff=7231"/>
		<updated>2007-12-20T16:01:42Z</updated>

		<summary type="html">&lt;p&gt;Saint-georges: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This page is to decide on a STANDARD list of CORE web service functions that we should support in Moodle (by XMLRPC, REST and SOAP) as an API for those writing code to work against Moodle.&lt;br /&gt;
&lt;br /&gt;
Please add new functions if there&#039;s functionality you want that isn&#039;t covered (we can refactor/whittle at the end).&lt;br /&gt;
&lt;br /&gt;
==add user==&lt;br /&gt;
I think we should require all data needed for a successful &amp;quot;first login&amp;quot; to Moodle without popping him out the profile page to fill in all missing required data. This may require extra inputs such as city, description ... (unsure of the full list depending of Moodle version ?).&lt;br /&gt;
Also password should be &amp;quot;required&amp;quot; if authentication method is &amp;quot;internal&amp;quot; . &lt;br /&gt;
&lt;br /&gt;
INPUT:&lt;br /&gt;
    firstname&lt;br /&gt;
    lastname&lt;br /&gt;
    email &lt;br /&gt;
    idnumber&lt;br /&gt;
    login &lt;br /&gt;
    authentication method (optional , default= manual ?)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
OPERATION:&lt;br /&gt;
    Adds a new user to the user database &lt;br /&gt;
&lt;br /&gt;
OUTPUT:&lt;br /&gt;
    id or false&lt;br /&gt;
&lt;br /&gt;
==delete user==&lt;br /&gt;
INPUT:&lt;br /&gt;
    idnumber  or &lt;br /&gt;
    email or &lt;br /&gt;
    id or&lt;br /&gt;
    login&lt;br /&gt;
&lt;br /&gt;
OPERATION:&lt;br /&gt;
    User is marked as deleted&lt;br /&gt;
    All it&#039;s role assignments are destroyed &lt;br /&gt;
OUTPUT:&lt;br /&gt;
    true/false&lt;br /&gt;
&lt;br /&gt;
==add course==&lt;br /&gt;
INPUT:&lt;br /&gt;
    name&lt;br /&gt;
    shortname&lt;br /&gt;
    format (default topics)&lt;br /&gt;
    idnumber &lt;br /&gt;
&lt;br /&gt;
OPERATION:&lt;br /&gt;
    Adds a new course to the course table&lt;br /&gt;
&lt;br /&gt;
OUTPUT:&lt;br /&gt;
    id or false&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==delete course==&lt;br /&gt;
INPUT:&lt;br /&gt;
    name OR&lt;br /&gt;
    shortname  OR&lt;br /&gt;
    idnumber OR&lt;br /&gt;
    id&lt;br /&gt;
&lt;br /&gt;
OPERATION:&lt;br /&gt;
    Deletes a course from the course table&lt;br /&gt;
    What about associated ressources, roles ... &lt;br /&gt;
&lt;br /&gt;
OUTPUT:&lt;br /&gt;
    true or false&lt;br /&gt;
&lt;br /&gt;
==enrol student to course==&lt;br /&gt;
INPUT:&lt;br /&gt;
    course unique Id (Moodle&#039;s ID or idnumber or shortname)&lt;br /&gt;
    student unique id (Moodle&#039;s ID or idnumber or login or email)&lt;br /&gt;
&lt;br /&gt;
OPERATION:&lt;br /&gt;
    Assign student role to course &lt;br /&gt;
&lt;br /&gt;
OUTPUT:&lt;br /&gt;
    true or false&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==unenrol student from course==&lt;br /&gt;
INPUT:&lt;br /&gt;
    course unique Id (Moodle&#039;s ID or idnumber or shortname)&lt;br /&gt;
    student unique id (Moodle&#039;s ID or idnumber or login or email)&lt;br /&gt;
&lt;br /&gt;
OPERATION:&lt;br /&gt;
    remove student role from course &lt;br /&gt;
&lt;br /&gt;
OUTPUT:&lt;br /&gt;
    true or false&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==assign role to course==&lt;br /&gt;
INPUT:&lt;br /&gt;
   course unique Id (Moodle&#039;s ID or idnumber or shortname)&lt;br /&gt;
   user unique id (Moodle&#039;s ID or idnumber or login or email)&lt;br /&gt;
   role id (teacher, non editing teacher, student (?) ...)&lt;br /&gt;
&lt;br /&gt;
OPERATION:&lt;br /&gt;
   assign given user a &amp;quot;standard&amp;quot; role to given course   &lt;br /&gt;
&lt;br /&gt;
OUTPUT:&lt;br /&gt;
    true or false&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==remove role from course==&lt;br /&gt;
INPUT:&lt;br /&gt;
   course unique Id (Moodle&#039;s ID or idnumber or shortname)&lt;br /&gt;
   user unique id (Moodle&#039;s ID or idnumber or login or email)&lt;br /&gt;
   role id (teacher, non editing teacher, student (?) ...)&lt;br /&gt;
&lt;br /&gt;
OPERATION:&lt;br /&gt;
   remove given user&#039;s &amp;quot;standard&amp;quot; role from given course   &lt;br /&gt;
&lt;br /&gt;
OUTPUT:&lt;br /&gt;
    true or false&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==get my courses==&lt;br /&gt;
&lt;br /&gt;
INPUT:&lt;br /&gt;
   user unique id (Moodle&#039;s ID or idnumber or login or email)&lt;br /&gt;
&lt;br /&gt;
OPERATION:&lt;br /&gt;
   return a &amp;quot;list&amp;quot; of course&#039;s id in which given user move given user has some role assigned     &lt;br /&gt;
&lt;br /&gt;
OUTPUT:&lt;br /&gt;
    &amp;quot;array&amp;quot; of (course id, role id)&lt;br /&gt;
    or false in case of error (bad user id)&lt;br /&gt;
&lt;br /&gt;
==get last changes in my courses==&lt;br /&gt;
&lt;br /&gt;
INPUT:&lt;br /&gt;
   user unique id (Moodle&#039;s ID or idnumber or login or email)&lt;br /&gt;
   course unique Id (Moodle&#039;s ID or shortname) - optional (default = all my courses)&lt;br /&gt;
   timestamp - optional (default = time of last connexion in every course)&lt;br /&gt;
&lt;br /&gt;
OPERATION:&lt;br /&gt;
   return a &amp;quot;list&amp;quot; of changes (resource added/modified, new activities, etc.) for courses in which given user has some role assigned - since timestamp or last connexion in given course &lt;br /&gt;
&lt;br /&gt;
OUTPUT:&lt;br /&gt;
    &amp;quot;array&amp;quot; of (course id, role id, url of the resource/activity, time of change)&lt;br /&gt;
    or false in case of error (bad user/course id)&lt;/div&gt;</summary>
		<author><name>Saint-georges</name></author>
	</entry>
</feed>