【问题标题】:Run BitTorrent Sync in API mode在 API 模式下运行 BitTorrent Sync
【发布时间】:2023-04-03 18:46:01
【问题描述】:

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

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

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

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

任何帮助将不胜感激。

【问题讨论】:

    标签: api bittorrent bittorrent-sync


    【解决方案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"  
        }  
    }  
    

    【讨论】:

    • 在 MAC 上怎么做?你能帮帮我吗?
    • 如果您需要更多帮助,请告诉我。
    • 我尝试了上面的链接,但它显示“无法识别的选项 `--config'” 这是我在终端上使用的命令- ["open BTSync.dmg --config /User/Developer/Desktop/ config.api"] 我也试过这个- ['sudo BTSync.dmg --config /User/Developer/Desktop/config.api"] 它显示 BTSync.dmg 命令未找到。我错在哪里??请帮助跨度>
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2021-01-02
    • 1970-01-01
    • 2020-08-20
    • 2018-02-06
    • 2023-04-03
    • 2021-10-30
    • 2018-02-02
    相关资源
    最近更新 更多