Search the Community

Showing results for tags 'api'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


  • Resilio Sync
    • Sync General Discussion
    • Sync Troubleshooting
    • Sync for NAS (Network Attached Storage)
    • Sync Stories
    • Developers
    • Feature Requests

Find results in...

Find results that contain...

Date Created

  • Start


Last Updated

  • Start


Filter by number of...


  • Start





Website URL







  1. Thank you for your interest in the Sync API and being part of our developer community. The varied ways you’ve leveraged Sync’s technology are inspiring and we’re excited to continue to enable them. We want to let you know that in June we’re planning an update to our API. This update will bring significant new functionality to the API, including access to 2.0 folders for all the existing calls. We’ll provide you with updated documentation and much more information around these features when the new API launches, but wanted to keep our current API users informed All calls using the existing API will continue to work at minimum through the end of 2015 to provide you with time to transition to the new API. We will continue to stay in touch before any changes to the existing API are made.The new API will require a new Sync build, which will be released at the same timeWe’re aware of interest in the API for mobile use, but this functionality will not be in the planned update.The API will continue to be free to use for non-commercial use. We sent all of you an email with this information, but wanted to post here as well to make sure everyone was kept aware.
  2. Hello Resilio-Team, I am trying to get the JSON output from "****/api/v2/folders/activity" with the following code: <!doctype html> <html lang="en"> <head> <meta charset="utf-8"> <script src="" integrity="sha256-ZosEbRLbNQzLpnKIkEdrPv7lOy9C27hHQ+Xp8a4MxAQ=" crossorigin="anonymous"></script> </head> <body> <script> $(document).ready(function() { $.ajax({ url: "", cache: true, dataType: "jsonp", jsonp: false, jsonpCallback: false, type: "GET", complete: function(result) { alert(result); }, success: function(result) { alert(result); }, error: function(result) { console.log(result); } }); }); </script> </body> </html> Chrome Network Monitor seems to look fine: But everytime i got an error message in console: Can some one help to fetch that json data correctly?
  3. Hi, Are you going to provide a command-line interface for BTSync 2.0? Or an API compatible with 2.0 folders? Or at least a way to deal with 2.0 folders with config file? I love BitTorrent Sync. But I used to deploy peers using Docker containers, it was super easy. Now I can't sync the new folders (2.0) without going through the web GUI... In some use cases, it's not even an option. Right now it seems like I have to keep working with 1.4 folders...
  4. Hi, We are new to using the BitSync. We installed it as a service. The GUI works fine The API always returns "Invalid Request". We tried calling the API using and with the same result. Can someone please help. We are using a trial API key for learning how to use the BitSync Torrent API. Thanks, Rupesh
  5. Hi I have emailed and submit the forum for an API and pricing quote, we are trying to test out the API for our local private P2P content delivery system, can someone from the customer service please contact me. Thanks Steven
  6. Hi, I use an evaluation API key for building an application around the sync API. Till few days ago everything worked well and I was able to call the APIs successfully. Now when I start the Sync on one of my machines with a config file (please see below), I can not open, it just shows "Invalid request". I get the same response on all API calls on that machine. This behaviour is the same across browsers: Chrome/Safari/Firefox. Interestingly, on other development machines everything works well and the APIs work as expected. So the evaluation key seems to be valid (it should still be valid for another 3 month). We run: Mac OS 10.11.3 Sync 2.3.1 (259) Any idea what could be the reason? Could it be related to the fact that I am using an evaluation key or it is something else? My config file as it is: { "agree_to_EULA": "yes", "device_name": "xyz-server", // path to folder where Sync will store its internal data, // folder must exist on disk "storage_path" : "/xyz/system/btsync/metadata", // run Sync in GUI mode "use_gui" : true, "webui" : { // IP address and port to access HTTP API "listen" : "", // login and password for HTTP basic authentication // authentication is optional, but it's recommended to use some // secret values unique for each Sync installation "login" : "abc", "password" : "def", // replace xxx with API key received from BitTorrent "api_key" : "MY-API-KEY" } }
  7. Hi, I'm trying the api and everything works well till now. I'm handling the file-related events (EVENT_REMOTE_FILE_ADDED, EVENT_REMOTE_FILE_REMOVED) so my app knows when files are created or removed by other peers. Now I want to do the same for subfolders, even when they are empty. I see that empty subfolders are synced but no event is fired. I would expect to have the same EVENT_REMOTE_FOLDER_ADDED and EVENT_REMOTE_FOLDER_REMOVED as I have for files. Am I doing something wrong or you do not have subfolder events implemented at the moment?
  8. Hello, so far I was using 1.4 sync api without issues. Today I've switched to 2.0 version of BTSync and now I cannot add folders via. API method (Both clients vere 2.0/Linux server and win8.1 PC/), can somebody help me what am I missing ?
  9. Is there a way to move synced file between folders using the API only? I want to create an app using BTSync API for which this method is fundamental, but I cannot find it in the API reference. If it's not implemented yet, are there any plans to do it in the immediate future?
  10. Hello! Is there api for getting download rate for concrete folder for btsync 1.4 ? I tryed to get it by api method get_files: (have_pieces - have_pieces_old) / time_elapsed * (total_size/total_pieces). But result differ from rate in btsync gui. (I use pieces,instead of size, because size return same value each time) Any clues?) Thanks!
  11. Syveren

    Piece Size

    Hello everybody! There are method in api http://[address]:[port]/api?method=get_files&secret=(secret)[&path=(path)] return smth like this: { "have_pieces": 1, "name": "index.html", "size": 2726, "state": "created", "total_pieces": 1, "type": "file", "download": 1 } How much bytes in 1 piece? Is piece's size constant value?
  12. Hi, i'm trying to add a folder using api request and get "{ "error": 105, "message": "Destination folder is not empty. Add anyway?" }" How can i force to make it anyway?
  13. So I figured before I start my ventures in writing some scripts for Sync, I'd create a nice and easy way to access the API from PHP. It has all the current API functions included. It requires a Sync install with the API enabled. Link : iGARET/BTSync-PHP Docs: Let me know if you have any questions/suggestions!
  14. Hi! I am add folder to sync through API interface:\!temp\sync_folder I am get answer: { "error": 105, "message": "This folder contains the data. Still add?" } How, I can answer "yes"??? or turn off this answer?
  15. Hi, I'm trying to develop an application based on BitTorrent Sync, written in C++. My main difficulty at this time is to manage the btsync process, I was wondering if there's someone here who knows c++ and who could possibly help me with that. In fact I've already asked on StackOverflow: As this question is intrinsically linked to Btsync, I though it would be a good idea to look for help here as well. So, if you think you can help, or know someone who can, please do! Thanks everyone Marc
  16. Hi.I don't add folder's throught BTSync 1.4 with python script's. Throught BTSync 1.3 work is good. What are change API functions?
  17. The Sync App 1.4.93 running on Windows crashes when the get_files API command issued with the secret of the folder with "invite" type. How to reproduce: 1. Run the Sync App with the API and GUI enabled. 2. Share any folder on another machine, check the "Peers I invite must be approved on this device" and copy the link. 3. Using the GUI on the first machine, enter the key and create a folder. You should see the "Pending Approval" next to folder name. 4. Go to should receive the JSON response like this: [ { "dir": "\\\\?\\c:\\sync\\11", "error": 0, "files": 0, "indexing": 0, "secret": "SOME_SECRET", "size": 0, "type": "invite" } ] Note the type of the folder is "invite". 5. Go to SOME_SECRET with actual secret of the invite folder) 6. The Sync App crashes.
  18. Hi guys, I'd like to use sync and torrent to make sincronization between folders and ipad. I try to explain what i have to do. I have an administrator and some users. This administrator have one or more folders with inside some files, jpeg,pdf and video. The users have to "copy" and sincronize all those folders on local memory on Ipad.... users with ipad does not have permission to modify those folders on files, but only sincoronize. Sorry for my bad english I hope you can understand. I'd ike to developer this app with titanium appcelerate or firemonkey. There is a possibility to "integrate" sync in an app?.. thanks a lot ..Lad.
  19. While adapting the btsync-gui to BitTorrent Sync 1.4 I discovered that the method get_prefs returns a plenty of new settings not visible in the Windows/Mac versions: {"bt.dl_queue_factor": "4","bt.extra_ul_max": "10","bt.extra_ul_rand": "128","bt.few_pieces_thres": "4","bt.http_pending_limit": "4","bt.prio_piece_thres": "20","bt.sequential_download": 0,"bt.sequential_files": 0,"bt.ul_queue_factor": "2","choker.interval": "10","choker.interval_auto": 1,"choker.interval_optim": "30","config_refresh_interval": "3600","connect_more_peers_interval": "1","device_name": "debpoldo - leo","disk_low_priority": 1,"diskio.rsize_factor": "16","download_limit": 0,"external_port": "0","folder_defaults.delete_to_trash": 1,"folder_defaults.known_hosts": "","folder_defaults.use_dht": 0,"folder_defaults.use_lan_broadcast": 1,"folder_defaults.use_relay": 1,"folder_defaults.use_tracker": 1,"folder_rescan_interval": "600","initial_install_version": "0","isp.peer_policy_date": "","isp.peer_policy_expy": "*1409589468","lan_encrypt_data": 1,"lang": 28261,"lang_iso": "en","listening_port": 62686,"log_size": "*10","max_file_size_diff_for_patching": "1000","max_file_size_for_versioning": "1000","net.diffserv_codepoint": "-1","peer.lazy_bitfield_factor": "24","peer.lazy_bitfield_mode": "0","peer.lazy_bitfield_nohave": "0","peer_expiration_days": "7","profiler_enabled": 0,"queue.started_bonus": "0","queue.switchtime": "60","queue.switchtime_prio": "300","rate_limit_local_peers": 0,"recv_buf_size": "10","reset_file_error_interval": "60","s_url": "","sdur": "0","send_buf_size": "10","sid1": "0","sid2": "0","sid3": "0","sid4": "0","sid5": "0","smaxage": "0","sminage": "0","smode": "0","ssamper": "0","state_notify_interval": "10","stitle": "","streaming.failover_rate_factor": "200","streaming.failover_set_percentage": "100","streaming.safety_factor": "110","sync_max_time_diff": "600","sync_state_with_peer_interval": "10","sync_trash_ttl": "30","ul_rate_download_thres": "0","update_peer_stat_interval": "10","upload_limit": 0,"upnp_cached_host": "","use_upnp": 1}Question Nr. 1: Does it make sense to display/support them in the GUI? Question Nr. 2: Is there any documentation for all these new settings?
  20. Hi! Bt_sync 1.4 don't get/set secret on Pythhon Script. BT_sync 1.3 - it's well done.
  21. Hi everyone, Is it possible to set a different speed limit to LAN transfers than the one set in download_limit and upload_limit? I know there is rate_limit_local_peers (as described here, which defaults to 0), but it's not quite what I want. Thanks!
  22. I'm currently writing an application with Node.js which uses the BTSync API. Reading through the emailed materials and the Terms of Use, it appears that BitTorrent wants the API key to be kept secret. How do I distribute the application without revealing the API key? How can users use the included config file without seeing the key? And how do I ensure that the key is not revealed when the application itself is open-source? One solution I can think of is to create a closed-source executable binary in a language like Java, C, or Python (using cxfreeze) for each system which serves solely to start the BTSync instance with the config. That doesn't seem ideal, but I am willing to take that route if necessary. Is there another solution?
  23. A few months ago I created a wrapper library for the Sync API as part of a much larger project but I never got around to publishing it. It is slightly more than just a wrapper as it also contains binaries and will take care of starting and stopping Sync so it makes working with Sync within Java applications much easier. Now that I had a bit of time I finally published the project to the Maven Central Repository. It is still in a very early stage and needs a lot of testing so please let me know of any problems you encounter. See the project at: Bitbucket - GitHub - Description of project copied from git repository: Purpose BTSync-Java is a library for the starting and interacting with BitTorrent Sync Beta. To use this library you must have received an API Key from BitTorrent Sync which can be done here. Bundled with this library is the 1.3.105 version of the BitTorrent Sync Beta binary (32bit) for Windows and Linux. Mac support will be added in one of the next updates. Background This library was created as part of my senior design project, a Universal User Experience system sponsored by HP. My team and I decided to use BitTorrent Sync as our synchronizing agent and needed to be able to start, stop, and interact with BT Sync completely in the background without it being previously installed or require user interaction. Maven Dependency Add the following dependency to your pom.xml to use BTSync-Java <dependency> <groupId>ms.safi.btsync</groupId> <artifactId>btsync-java</artifactId> <version>0.1</version></dependency>NOTE: There is another artifact in Maven Central under the artifact BTSync-Java which SHOULD NOT be used as it was mistakenly added and will not receive future updates. Snippit showing usage: public class TestBTSync { public static String API_KEY = "MYAPIKEY"; public static void main(String[] args) { try(BTSyncApp app = new BTSyncApp(API_KEY)) { // 1. Start BitTorrent Sync and get an instance of BTSyncClient to interact with it BTSyncClient client = app.startBtSync(); // 2. Try to add a folder to BitTorrent Sync - print out the error if unsuccessful if(!client.addFolder("C:\\Users\\OSafi\\Desktop\\Stuff")) { System.out.println("Could not add folder"); System.out.println(client.getLastError()); } // 3. Use the API to shutdown your BitTorrent Sync instance client.shutdown(); } catch (Exception e) { e.printStackTrace(); } }}
  24. Are there any means to get a one-time secret with the Sync Api?
  25. Request Headers. Note Accept. GET /api?method=get_folders HTTP/1.1Accept: application/jsonAccept-Encoding: gzip, deflate, compressAuthorization: Basic ASDFgfdsghstFDASGFDAGRADContent-Type: application/json; charset=utf-8Host: wintermute:8888User-Agent: HTTPie/0.8.0Response Headers. Note Content-Type. HTTP/1.1 200 OKCache-Control: no-cacheConnection: keep-aliveContent-Length: 654Content-Type: text/javascriptContent-Type should obviously be application/json -- we are not returning arbitrary JavaScript (aka JSONP) here. This should be fixed because: 1. sent content-type should match the requested type within reason 2. it's clearly application/json data being returned anyway 3. downstream APIs and tools may not handle text/javascript in the same way This specific example taken from FreeBSD 10.0 client. I'd suggest also you may want to consider including the btsync version in the returned headers. This will be useful in future for feature detection and operations.