XMLRPC API
Posted: Wed Mar 11, 2009 11:30 pm
Have build a simple XMLRPC server inside domotiga (written in Gambas ofcourse).
So webpages and programs (clients) can query and set things.
I only have to program the methods to do this.
Now which one do we need?
domotiga.setdevice
domotiga.getdevice
domotiga.listdevices
domotiga.gethousestatus
domotiga.sethousestatus
domotiga.speak
domotiga.playsound
domotiga.getlastcaller
Anyone have a list of these, I was thinking more home automation software have an xmlrpc api builtin, but cannot find one LOL...
Suggestions are welcome.
Now I only have some system and test methods:
----
Sending the following request:
<?xml version="1.0"?>
<methodCall>
<methodName>system.listMethods</methodName>
<params>
</params>
</methodCall>
Debug info of server data follows...
---GOT---
HTTP/1.1 200 OK
Connection: close
Content-Length: 533
Content-Type: text/xml
Server: Gambas RPC Server
<?xml version="1.0"?>
<methodResponse>
<params>
<param>
<value>
<array>
<data>
<value>
<string>system.listMethods</string>
</value>
<value>
<string>system.methodHelp</string>
</value>
<value>
<string>system.methodSignature</string>
</value>
<value>
<string>examples.ping</string>
</value>
<value>
<string>examples.getStateName</string>
</value>
</data>
</array>
</value>
</param>
</params>
</methodResponse>
---END---
HEADER: connection: close
HEADER: content-length: 533
HEADER: content-type: text/xml
HEADER: server: Gambas RPC Server
---
Regards,
Ron.
So webpages and programs (clients) can query and set things.
I only have to program the methods to do this.
Now which one do we need?
domotiga.setdevice
domotiga.getdevice
domotiga.listdevices
domotiga.gethousestatus
domotiga.sethousestatus
domotiga.speak
domotiga.playsound
domotiga.getlastcaller
Anyone have a list of these, I was thinking more home automation software have an xmlrpc api builtin, but cannot find one LOL...
Suggestions are welcome.
Now I only have some system and test methods:
----
Sending the following request:
<?xml version="1.0"?>
<methodCall>
<methodName>system.listMethods</methodName>
<params>
</params>
</methodCall>
Debug info of server data follows...
---GOT---
HTTP/1.1 200 OK
Connection: close
Content-Length: 533
Content-Type: text/xml
Server: Gambas RPC Server
<?xml version="1.0"?>
<methodResponse>
<params>
<param>
<value>
<array>
<data>
<value>
<string>system.listMethods</string>
</value>
<value>
<string>system.methodHelp</string>
</value>
<value>
<string>system.methodSignature</string>
</value>
<value>
<string>examples.ping</string>
</value>
<value>
<string>examples.getStateName</string>
</value>
</data>
</array>
</value>
</param>
</params>
</methodResponse>
---END---
HEADER: connection: close
HEADER: content-length: 533
HEADER: content-type: text/xml
HEADER: server: Gambas RPC Server
---
Regards,
Ron.