Garet Posted November 14, 2013 Report Share Posted November 14, 2013 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-PHPDocs: http://igaret.github.io/BTSync-PHP/classes/BTSync.html Let me know if you have any questions/suggestions! Quote Link to comment Share on other sites More sharing options...
gregcaulder Posted March 4, 2014 Report Share Posted March 4, 2014 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-PHPDocs: http://igaret.github.io/BTSync-PHP/classes/BTSync.html Let me know if you have any questions/suggestions! You didn't add in anything for the ability to pass a username and password.I added it on my own and got it to work. Quote Link to comment Share on other sites More sharing options...
Garet Posted March 7, 2014 Author Report Share Posted March 7, 2014 I've looked over your changes and included it in the repo now. Thanks for the feedback. Quote Link to comment Share on other sites More sharing options...
mikeyF Posted May 27, 2014 Report Share Posted May 27, 2014 (edited) Hi !i'm not a very good php programmer can you give me the minimum to get started with your wrapper ? Edited May 27, 2014 by mikeyF Quote Link to comment Share on other sites More sharing options...
s3v Posted September 17, 2014 Report Share Posted September 17, 2014 Great thank you! Quote Link to comment Share on other sites More sharing options...
lexoyo Posted October 13, 2014 Report Share Posted October 13, 2014 Hi Garet! Thank you for sharing! I stared your repo It looks like the documentation is available here (your original link is dead now) Could you explain what is the point of having a BTSync instance running on a server? Is it to make a centralized "dropbox like" service like Dropbox? Quote Link to comment Share on other sites More sharing options...
danhunsaker Posted November 6, 2014 Report Share Posted November 6, 2014 @lexoyo - That's one option. However, it's mostly so that you have a BTSync API to access in the first place. BTSync uses HTTP for its API, so it has to be running someplace your PHP script can access it via HTTP(S) - the simplest option is the same server PHP is running on, though you can of course set things up differently if that suits your use case. 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.