Search the Community

Showing results for tags 'api'.



More search options

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

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

Found 53 results

  1. API V2 - GET JSON

    Hello Resilio-Team, I am trying to get the JSON output from "http://127.0.0.1:****/api/v2/folders/activity" with the following code: <!doctype html> <html lang="en"> <head> <meta charset="utf-8"> <script src="https://code.jquery.com/jquery-1.12.4.min.js" integrity="sha256-ZosEbRLbNQzLpnKIkEdrPv7lOy9C27hHQ+Xp8a4MxAQ=" crossorigin="anonymous"></script> </head> <body> <script> $(document).ready(function() { $.ajax({ url: "http://127.0.0.1:50136/api/v2/folders/activity", 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?
  2. Hi, We are new to using the BitSync. We installed it as a service. The GUI works fine http://127.0.0.1:8888 The API always returns "Invalid Request". We tried calling the API using http://127.0.0.1:8888/api?method=get_folders and http://127.0.0.1:8888/api/ 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
  3. 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
  4. 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 http://127.0.0.1:888, 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" : "127.0.0.1:8888", // 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" } }
  5. 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?
  6. Sync Api 2.0 Add Folder

    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 ?
  7. Announcing 2.0 Api

    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.
  8. 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...
  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. 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. 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: http://stackoverflow.com/questions/26624871/problems-developing-cross-platform-app-with-boost-process-0-5 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
  14. Sync Folder Throught Api

    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?
  15. Api Interface, Add_Folder

    Hi! I am add folder to sync through API interface: http://127.0.0.1:8899/api?method=add_folder&dir=D:\!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?
  16. 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 http://127.0.0.1:8888/api?method=get_foldersYou 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 http://127.0.0.1:8888/api?method=get_files&secret=SOME_SECRET(replace SOME_SECRET with actual secret of the invite folder) 6. The Sync App crashes.
  17. Programming Client

    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.
  18. Getsecret

    Hi! Bt_sync 1.4 don't get/set secret on Pythhon Script. BT_sync 1.3 - it's well done.
  19. 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!
  20. 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?
  21. Golang Client

    I started a client to btsync for golang apps https://github.com/dukex/btsync Every contribution is welcome
  22. 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 - https://bitbucket.org/osafi/btsync-java GitHub - https://github.com/commandersafi/BTSync-Java 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(); } }}
  23. I was just wondering if anyone else was seeing this behavior. I have selective sync enabled on the sync folder. However, when I try calling the api to disable sync on a directory, the file info returned doesn't indicate download is equal to 0 and the directory is still synced. Has anyone encountered this and found a solution?
  24. Set_File_Prefs And Use Of It

    I try to use : http://[address]:[port]/api?method=set_file_prefs&secret=(secret)&path=(path)&download=1 It doesn't work, so i suspect the path to be wrong. Do I have to keep the "()" I try : http://ip:port/api?method=set_file_prefs&secret=(***********************)&path=(D:\temp\test)&download=1 Can some one help me with this?
  25. hi ! When i try to add a new folder to my webapp (that use the API) i got this annoying message that my secret key does not respect the rules. in french : "Cette clé secrète n’est pas valide. Générez une nouvelle clé secrète ou saisissez la clé secrète du dossier partagé." the key tried was : "AEA5698173FC6FDBE30A9AF462B9FC8478148CB9C26003C930D8ECC4508FF491D" and when i try one like :"13132154513213212132132123132154513213212132132123132154513213212132132123132154513213212132132"It works. And if you can explain me the way selective_sync works it would be a great bonus.