【问题标题】:Join to campfire room with curl使用 curl 加入篝火室
【发布时间】:2013-01-18 04:57:28
【问题描述】:

我尝试通过 curl room api 加入篝火室。

我试试:

curl -v -H "Content-Type: application/json" -i --user my_token:my_password https://camp111.campfirenow.com/room/test_room/join.json

我收到了回复:

<html><body>You are being <a href="https://camp111.campfirenow.com/login">redirected</a>.</body></html>

如何使用 curl 正确加入篝火室?

谢谢。

【问题讨论】:

  • 顺便说一句,您可以对除 /users/me.xml 以外的所有方法使用带令牌的虚拟密码(X 代替 my_password)

标签: api rest curl campfire


【解决方案1】:

您应该将 test_room 替换为您的数字 roomId,并且您必须至少指定空的 -d 参数以在标头中设置 POST 方法,并且您可以省略加入请求的 -i-H 参数。

请记住,您只能加入房间受邀帐户。

【讨论】:

    猜你喜欢
    • 2015-10-25
    • 1970-01-01
    • 2015-09-24
    • 1970-01-01
    • 1970-01-01
    • 2023-03-26
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多