【问题标题】:Interfacing with the despotify gateway与despotify网关接口
【发布时间】:2012-12-05 07:04:37
【问题描述】:

我在我的一个小项目中使用了 despotify,这是一个 CLI spotify 客户端。与 despotify 交互的一种方式是使用网关 (http://despotify.se/clients/)。我可以启动网关,它会在 localhost 的 8080 端口进行监听,但我不知道如何传递命令和参数。您不能执行“127.0.0.1:8080/login?username=user&password=pass”之类的操作,因为它会返回错误。有其他人使用过despotify吗?

【问题讨论】:

    标签: python despotify


    【解决方案1】:

    如果您从 CLI 启动 despotify,它应该会显示以下消息:

    Usage: ./despotify <username> <password>
    

    This video给你一个基本的介绍,这是最好的起点

    【讨论】:

      【解决方案2】:

      只需 netcat 或 telnet 到您的网关并使用以下命令:

      nc localhost 8080
      login user password
      200 0 OK Login successful
      search someartist
      

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 2018-12-06
        • 1970-01-01
        • 1970-01-01
        • 2021-11-11
        • 2020-03-23
        • 2013-02-05
        • 2012-04-08
        • 1970-01-01
        相关资源
        最近更新 更多