Page 1 of 1

How to manage Twonky WebDav with URL RPC GET SET commands

Posted: Wed Sep 12, 2012 4:15 pm
by phibertron
If you are unfamiliar with managing twonky from url's
the following thread goes over most of what you need to know

How to manage Twonky Server with URL RPC GET SET commands
http://www.twonkyforum.com/viewtopic.php?f=2&t=9364

1.
The first command to know about is get_webdav_link

Code: Select all

http://<server_ip_address>:9000/rpc/get_webdav_link
if twonkywebdav is running It will return the url and port number of the webdav server

http ://<server_ip_address>:9050

if twonkywebdav is not running It will return the following

NoWebdav

2.
The second command to know about is webdavproxy and webdav

Code: Select all

http://<server_ip_address>:9000rpc/webdavproxy?/rpc/webdav/
The return of that command is the following, its a list of usable commands to manage webdav

WebDAV RPC commands:

get_users
get_shares
get_rights
add_share?alias=[name]&path=[path-string]
delete_share?share=[share-name]
add_user?user=[user-name]&password=[password]
delete_user?user=[user-name]
update_user?user=[user-name]&old=[old-password]&new=[new-password]
set_access?share=[share-name]&user=[user-name]&mode=[access-mode]
delete_access?share=[share-name]&user=[user-name]
get_admin_account update_admin_account?user=[user-name]&password=[password]
disable_admin_access reset_admin_account
get_server_info
reload
stop

3.
The third thing to know is how to use a webdav command

The following is an example of how to use get_server_info

Code: Select all

http://<server_ip_address>:9000rpc/webdavproxy?/rpc/webdav/get_server_info
It would return something similiar to the following about the status of the webdav server

Twonky Webdav-Server [servername] 9050 7.0.9 en 0 Days, 0 Hours, 0 Minutes, 0 Seconds Dec 21 2012

Note:
If you weer wondering, I have a thread on how to change the port used by twonkywebdav here
http://community.twonky.com/twonky/topi ... webdav_exe