This repository was archived by the owner on Oct 18, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 5
getsyncfolders
Brian Boucheron edited this page Sep 17, 2013
·
4 revisions
This action will return all of the folders currently being synced, connected peers who are sharing that folder, and the data transfer rate for each at the time of request. The Web UI calls this once every second.
-
actiongetsyncfolders -
tokenYour current token (see Session Initalisation) -
tThe current timestamp (optional)
JSON string containing:
-
foldersAn array of objects representing each folder currently being synced, with the following properties: -
iswritable1 or 0, Do we have write access to the folder, or are we read-only? -
nameThe path of the folder. -
peersAn array of objects representing each peer current connected, with the following properties:-
direct1 if connected directly to the peer, 0 if connected via relay (appears in web UI next to each peer as arrows or a cloud icon, respectively). -
nameThe name given in the peer's Bittorrent Sync configuration (may be an IP address until this is resolved). -
statusA string indicating the current status of the peer, either "Synced" with the date and time sync was completed, or an indication of the direction and rate of data transfer.
-
-
readonlysecretA string containing the read only secret for sharing the folder. -
secretA string containing the full access secret for sharing the folder. -
sizeA string containing the size and number of files in the folder. -
speedA string with the total transfer speed of all folders and connections. "0.6 kB/s up, 8.7 kB/s down" for example. Units scale up to "MB/s" automatically.
GET http://localhost:8888/gui/?token=ToKeNStRinG&action=getsyncfolders