0

我想使用 BitTorrent Sync 的 API。为此,我首先必须在 API 模式下运行它。
我正在检查以下链接中的“启用 API”部分:http:
//www.bittorrent.com/sync/developers/api

但我无法运行它。
任何人都可以分享一些经验。我是新手。

这是我在命令提示符下执行的内容:-

C:\Program Files (x86)\BitTorrent Sync>btsync.exe /config D:\config.api  

任何帮助将不胜感激。

4

1 回答 1

1

这是我的错误。这是运行它的正确方法:

BTSync.exe /config D:\config.api  

问题出在配置文件上。这是应该的方式:

{  
    // path to folder where Sync will store its internal data,  
    // folder must exist on disk  
    "storage_path" : "c://Users/Folder1/btsync",  
    // run Sync in GUI-less mode  
    "use_gui" : true,    
    "webui" : {  
        // IP address and port to access HTTP API  
        "listen" : "0.0.0.0:9090",  
        // 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" : "api",  
        "password" : "secret",  
        // replace xxx with API key received from BitTorrent  
        "api_key" : "xxx"  
    }  
}  
于 2014-05-09T10:55:23.057 回答