WebUI as API Server


Recommended Posts

Hello.

I've planned to share photos with my friends from NAS via WebUI, but WebUI doesn't accept Russian UTF-8 folders on my NAS (there is bug in webui.js).

Unfortunately, btsync doesn't have any public API, but it has WebUI in Linux version :)!

I've created simple console tool btsync-cli that communicates via WebUI. It can add shared folder or remove it from sync index.

bash-3.2# ./btsync-cli -a /volume1/Photos/Чтоб\ их\ за\ ногу/2002/2002-Лето/

Folder was added to sync folders

Folder: /volume1/Photos/Чтоб их за ногу/2002/2002-Лето/

Secret: BRLYGKFU------------AXZLPPBC3BM4

RO: RJ2E3PED------------6JWBWPFWSW36E

Status: 0

Another useful tool is php bittorent-sync-client for btsync WebUI. You can build your own server-side WebUI :)

Now I'm working on standalone (you'll can install it on your hosting) photo sharing site via btsync.

I hope this will be useful to someone.

PS: btw, btsync process will crash in some cases if you call invalid urls with parameters..

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.