Skip to content
This repository was archived by the owner on Oct 18, 2024. It is now read-only.

Addsyncfolder

Mark Johnson edited this page Sep 15, 2013 · 1 revision

This action will add a new synced folder

Request Parameters

  • action addsyncfolder
  • token Your current token (see Session Initalisation)
  • t The current timestamp (optional)
  • name The local path of the synced folder
  • secret The secret for the shared folder. If either from the peer sharing the folder, or generated with generatesecret if you're sharing a new folder.

returns

JSON string containing:

  • error Error code - 0 for success, 201 for an invalid secret, 100 for an invalid folder name
  • message The error message (only sent if Error code isn't 0)
  • n The folder name sent in the request (only sent if Error code isn't 0)
  • secret The secret sent in the request (only sent if Error code isn't 0)

example

GET http://localhost:8888/gui/?token=ToKeNStRinG&action=addsyncfolder&name=/home/me/btsync&secret=SEcREtSTrinG

Clone this wiki locally