Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我在我的一个小项目中使用了 despotify,一个 CLI spotify 客户端。与 despotify 交互的一种方式是使用网关 (http://despotify.se/clients/)。我可以启动网关,它会在 localhost 的 8080 端口进行监听,但我不知道如何传递命令和参数。您不能执行“127.0.0.1:8080/login?username=user&password=pass”之类的操作,因为它会返回错误。有没有其他人与despotify合作过?
如果您从 CLI 启动 despotify,它应该会显示以下消息:
Usage: ./despotify <username> <password>
该视频向您展示了基本介绍,这是最好的起点
只需 netcat 或 telnet 到您的网关并使用以下命令:
nc localhost 8080 login user password 200 0 OK Login successful search someartist