#!/usr/bin/env python import xmlrpclib server = xmlrpclib.Server("http://localhost/drupal/xmlrpc.php") for method in server.system.listMethods(): print method, server.system.methodHelp(method)
เมื่อสั่ง run จะได้ output ดังนี้
system.multicall
system.methodSignature
Returns an array describing the return type and required parameters of a method.
system.getCapabilities
Returns a struct describing the XML-RPC specifications supported by this server.
system.listMethods
Returns an array of available methods on this server.
system.methodHelp
Returns a documentation string for the specified method.