Quantcast
Channel: Web services
Viewing all articles
Browse latest Browse all 2361

Re: How to update indtitution and other options on webservice

$
0
0
par Pinki Naskar.  

For this at first you have to find the external function in services.php of Moodle which u r using,

find out the methodname and classpath, classpath is the path of the methodname.

You have to customize the method parameters.

Example---->

For core_user_create_users external function


'core_user_create_users' => array(
'classname' => 'core_user_external',           
'methodname' => 'create_users',                  #method name
'classpath' => 'user/externallib.php',             #path
'description' => 'Create users.',
'type' => 'write',
'capabilities'=> 'moodle/user:create',
),

Have to customize---->

public static function create_users_parameters()

 

 Good Luck Oui

 


Viewing all articles
Browse latest Browse all 2361

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>