kos13

Sync API wishlist

Recommended Posts

My 2 cents


 


  • Mobile API, which can be used by other apps to control the sync.
  • Api to tell Whats changed/added/removed since <time>
  • A oauth kind of authentication so btsync can limit  access permissions and for different kind of apps.
Edited by devilankur18

Share this post


Link to post
Share on other sites

I'm trying to write a wrapper around BTSync using the API so I can handle all the shares programatically.

 

I'd like to see the config being passed as value to the app in an argument rather than only as a feel on HDD. This way I can keep my api key hidden away when I pass the parameters to the app at startup.

 

That's a great suggestion, and should be easy to implement! Not only the api key, but also the webui address and authentication data, are regarded as sensitive in my opinion.

 

Of course, this approach wouldn't prevent someone with really advanced knowledges from getting that info, but it should do fine for average PC users as the ones I'm targetting.

_______________

 

I'd also like to bring to light the following request from the community (turns out it's mine as well), hoping it gets more eyes onto:

 

Run BTSync as a Windows service (http://forum.bittorrent.com/topic/29659-btsync-as-a-windows-service/)

Share this post


Link to post
Share on other sites

http://[address]:[port]/api?method=get_folder_peers&secret=(secret)
synced is always 0.. at least on my version

 

but I would like to have a timestamp whith a timestamp that the peers (each of them) checked if  a sync was needed.

something like 

http://[address]:[port]/api?method=get_peerInfo&secret=(secret)&peerId=(peerId)

returns

{

"connection": "direct", // direct or relay
"name": "GT-I9500",
"lasFullSync": "2012-09-27T22:00:00", // timestamp when last full-sync completed

"lastIncommingConnetion":"2012-09-27T22:00:00" // timestamp when last connection or check for sync was made

}

 

 

In my case I use Bittorrent to make backups data of some clients of ours to a server in our data-center. Our clients have access to a self-service portal that we offer. I would like  to show them there, the state of the backups, and the last time the peers (in my case our servers) checked for changes... 

I'm now parsing the clients Bitttorrent logs (through a windows service they have anyway installed on their machine), and send the results to a Rest Service we have made for it.
This actually works (I parse for things like  "Incoming connection from", and some other strings) and check the datetime it was last written.. and if it's older that an hour I raise an alarm (just an Icon changes!).

 

The problem with this solution is obvious :

  • Logging has to be enabled...
  • After a while this files get huge... I got a files up to 20 GB large!.
  • If you guys decide to write something else in the log, my solution stops working.(this has happened in the past)

So.. that is my wish!

Thanks

Share this post


Link to post
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.