https://github.com/boxdot/btsync-cpp
https://github.com/boxdot/btsync-cpp
Last synced: 10 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/boxdot/btsync-cpp
- Owner: boxdot
- Created: 2014-03-06T15:43:06.000Z (over 12 years ago)
- Default Branch: master
- Last Pushed: 2014-03-06T16:01:39.000Z (over 12 years ago)
- Last Synced: 2025-03-29T14:45:38.323Z (about 1 year ago)
- Language: C++
- Size: 152 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
A simple C++ wrapper class for BitTorrent Sync API. Check http://www.bittorrent.com/intl/de/sync/developers for more information.
Usage:
#include
#include "btsync/client.hpp"
int main(int argc, char** argv) {
Btsync::Client c("api_user", "password");
Json::Value res = c.get_folders();
std::cout << res << endl;
return 0;
}
# Build
The module depends on [json-cpp](https://github.com/mrtazz/json-cpp) and libcurl.
$ git submodule update --init
$ make
# Testing
The only test depends on boost and [Catch](https://github.com/philsquared/Catch). Build with
$ make tests
and run the executable file in `bin`. Note that BitTorrent Sync must run in the api mode and you probably need to adapt the credentials in `Makefile`.