6 Sample Moodle WS python client
7 Patrick Pollet patrick.pollet@insa-lyon.fr
8 Adjust URL of Moodle server if remote client
9 Set login_name and password to a regular Moodle user
10 (with admin rights for full testing)
16 proxy= proxy = SOAPpy.WSDL.Proxy('http://localhost:8891/moodle19/wspp/wsdl_pp.php')
20 a,b=proxy.login ("admin","12345");
22 #print proxy.get_resources(a,b,[],"")
23 print proxy.get_resources(a,b,[2],"id")
24 print proxy.get_resources(a,b,["dummy"],"idnumber")
25 #print proxy.get_user(a,b,"ppollet","username")
27 #get a list of courses by id, including an invalid one
28 #print proxy.get_courses(a,b,[1,2,3,-1],'id')
30 #print proxy.get_users(a,b,["admin","guest","unknown"],"username")
32 #print proxy.get_course_byid(a,b,2)
34 #print proxy.get_my_courses(a,b)
36 #print proxy.get_last_changes(a,b,2,'id',10)