vladr Posted December 5, 2013 Report Share Posted December 5, 2013 I'm having troubles understanding why the "add_folder" method does not directly provide the folder' secrets in return.Adding a folder to BTSync seems a useless action without the secrets. So, my app needs to do the following: 1. "add_folder"2. "get_folders"3. iterate the list of folders and match the path that was just added to get the secret4. "get_secrets" with the secret found at step #3 That's quite some work for a simple task. At least include the main secret in the "add_folder" reply, so that I can skip the step number 3.The best solution however would be to merge the response of "get_secrets" into the response of "add_folder". P.S. I tried as a workaround to specify my own "secret" in the "add_folder" request, however BTSync crashes with any operation that includes a folder added with a custom "secret". If I don't understand correctly how the API was designed to be used, please do let me know. By the way, great work on the software! Quote Link to comment Share on other sites More sharing options...
vladr Posted December 5, 2013 Author Report Share Posted December 5, 2013 (About the P.S., specifying the "secret" meant that the folder was syncing with an external folder, a folder added on another device. I thought the user can control the "secret" that a folder is being added with for the first time.) Quote Link to comment Share on other sites More sharing options...
vladr Posted December 13, 2013 Author Report Share Posted December 13, 2013 I still hope that the developers will include the full-access secret in the JSON returned by "add_folder". Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.