PHP Wrapper for the API


Garet

Recommended Posts

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: http://igaret.github.io/BTSync-PHP/classes/BTSync.html

 

Let me know if you have any questions/suggestions!

Link to comment
Share on other sites

  • 3 months later...

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: 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.

Link to comment
Share on other sites

  • 2 months later...
  • 3 months later...
  • 4 weeks later...
  • 4 weeks later...

@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.

Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.