Aquesta pàgina forma part de la documentació de Moodle en català, tot i que no ha estat traduïda encara. Podeu contribuir obertament a les tasques de traducció. Podeu consultar la Guia d'edició de la documentació i també participar ens els debats del fòrum de traductors de la documentació a moodle.org

Web services: diferència entre les revisions

De MoodleDocs
Salta a:navegació, cerca
Cap resum de modificació
m (added link to spanish translation of document)
 
(10 revisions intermèdies per 2 usuaris que no es mostren)
Línia 1: Línia 1:
{{Managing a Moodle site}}
{{Managing a Moodle site}}
Web services enable other systems to login to Moodle and perform operations.  
Web services enable other systems to login to Moodle and perform operations.  
=== How it works ===
This simple example will give you an idea of how our web services infrastructure works.
#The client sends a username and password to the web service login script.
#The script returns a token for that user account.
#The client calls a particular web service function on a protocol server including the token .
#The protocol server uses the token to check that the user can call the function.
#The protocol server call the matching external function, located in a externallib.php file inside the relevant module.
#The external function checks that the current user has_capability to do this operation.
#The external function calls the matching Moodle core function (in lib.php usually).
#The core function can return a result to the external function.
#The external function will return a result to the protocol server.
#The protocol server returns the result to the client.


== Administrator documentation ==
== Administrator documentation ==
Línia 22: Línia 9:
Most of the time, the client application will retrieve the key (token) for a user. However, it is still possible for a user to view the key and to regenerate it.
Most of the time, the client application will retrieve the key (token) for a user. However, it is still possible for a user to view the key and to regenerate it.
* [[Security keys|How to obtain a security key (token)]]
* [[Security keys|How to obtain a security key (token)]]
== Developer documentation==
The full API can be founnd on any Moodle sites under ''' Administration block > Plugins > Web services > API Documentation'''.
* [[Development:Creating a web service and a web service function | Implement a web service and a web service function]]
* [[Development:Creating a web service client | Implement a web service client]]
* [https://docs.moodle.org/dev/Web_services_Roadmap Web service Roadmap]


==See also==
==See also==
Línia 35: Línia 15:
* [[Web_services_FAQ|Web services FAQ]]
* [[Web_services_FAQ|Web services FAQ]]


Specification / core development:
Developer documentation:
* [[Development:External services security]]
* [[Development:Web_services | Web services developer documentation]]
* [[Development:External services description]]
* [[:dev:Web_services_Roadmap | Web service Roadmap]]


Other implementations:
Other implementations:
Línia 44: Línia 24:
[[Category:Web Services]]
[[Category:Web Services]]


[[es:Servicios web]]
[[eu:Web-zerbitzuak]]
[[eu:Web-zerbitzuak]]
[[ja:ウェブサービス]]
[[ja:ウェブサービス]]

Revisió de 00:57, 30 gen 2013

Web services enable other systems to login to Moodle and perform operations.

Administrator documentation

User documentation

Most of the time, the client application will retrieve the key (token) for a user. However, it is still possible for a user to view the key and to regenerate it.

See also

Sharing knowledge:

Developer documentation:

Other implementations: