navigation MDL-20242 Fixed bug whereby sections that no longer exist were shown
[moodle.git] / lang / en_utf8 / webservice.php
CommitLineData
87171bd8 1<?php // $Id$
2$string['soapdocumentation'] = '<H2>SOAP Manual</H2>
f83dfcf6 3 <b>1.</b> Call the method <b>get_token</b> on \"<i>http://remotemoodle/webservice/soap/server.php?wsdl</i>\"<br>
839bd5a2 4 The function parameter is an array: in PHP it would be array(\"username\" => \"wsuser\", \"password\" => \"wspassword\")<br>
87171bd8 5 Return value is a token (integer)<br>
6 <br>
839bd5a2 7 <b>2.</b> Then call a moodle web service method on \"<i>http://remotemoodle/webservice/soap/server.php?token=the_received_token&classpath=the_moodle_path&wsdl</i>\"<br>
87171bd8 8 Every method has only one parameter which is an array.<br>
9 <br>
10 For example in PHP for this specific function:<br>
11 Moodle path: <b>user</b><br>
839bd5a2 12 <b>tmp_delete_user</b>( string username , integer mnethostid )<br>
87171bd8 13 You will call something like:<br>
14 your_client->tmp_delete_user(array(\"username\" => \"username_to_delete\",\"mnethostid\" => 1))<br><br>
15';
16$string['xmlrpcdocumentation'] = '<H2>XMLRPC Manual</H2>
f83dfcf6 17 <b>1.</b> Call the method <b>authentication.get_token</b> on \"<i>http://remotemoodle/webservice/xmlrpc/server.php</i>\"<br>
839bd5a2 18 The function parameter is an array: in PHP it would be array(\"username\" => \"wsuser\", \"password\" => \"wspassword\")<br>
87171bd8 19 Return value is a token (integer)<br>
20 <br>
839bd5a2 21 <b>2.</b> Then call a moodle web service method on \"<i>http://remotemoodle/webservice/xmlrpc/server.php?classpath=the_moodle_path&token=the_received_token</i>\"<br>
87171bd8 22 Every method has only one parameter which is an array.<br>
23 <br>
24 For example in PHP for this specific function:<br>
25 Moodle path: <b>user</b><br>
839bd5a2 26 <b>tmp_delete_user</b>( string username , integer mnethostid )<br>
87171bd8 27 You will call something like:<br>
28 your_client->call(\"user.tmp_delete_user\", array(array(\"username\" => \"username_to_delete\",\"mnethostid\" => 1)))<br>
29
30';
31$string['functionlist'] = 'list of web service functions';
32$string['moodlepath'] = 'Moodle path';
839bd5a2 33$string['wspagetitle'] = 'Web services documentation';
34$string['webservicesenable'] = 'Web services enable';
35$string['protocolenable'] = '$a[0] protocol enable';
36$string['ok'] = 'OK';
37$string['fail'] = 'FAIL';
38$string['wsuserreminder'] = 'Reminder: the Moodle administrator of this site needs to give you moodle/site:usewebservices capability.';
6fcd5672 39$string['debugdisplayon'] = '\"Display debug messages\" is set On. The XMLRPC server will not work. The other web service servers could also return some problems. <br/>Alert the Moodle administrator to set it Off.';
f7631e73 40$string['amfdebug'] = 'AMF server debug mode';
41
87171bd8 42?>