RemoteAdmin:admin teleport agent
From OpenSimulator
(Difference between revisions)
(Created page with "=== Example in Python === <source lang="python"> #!/usr/bin/python import xmlrpclib # XML-RPC URL (http_listener_port) simulatorURL = "http://127.0.0.1:5000" # instantia...") |
Revision as of 09:38, 7 December 2011
Example in Python
#!/usr/bin/python import xmlrpclib # XML-RPC URL (http_listener_port) simulatorURL = "http://127.0.0.1:5000" # instantiate server object simulator = xmlrpclib.Server(simulatorURL) # invoke admin_alert: requires password and message simulator.admin_teleport_agent({'password':'secret', 'agent_first_name':'Lord','agent_last_name':'Lucan','region_name':'test', 'pos_x':'15', 'pos_y':'10'})