Xml-rpc vnc console

How to use the XML-RPC API to get the VNC Tokens of the virtual host, or how to let the virtual host automatically generate tokens under the directory sunstone_vnc_tokens? Thank you