【问题标题】:Intercom API (v2.0) search conversation not working对讲 API (v2.0) 搜索对话不起作用
【发布时间】:2020-05-27 18:02:53
【问题描述】:

我尝试使用 Postman 从 Intercom API 搜索对话,但它总是返回服务器错误消息。 我只是关注了他们的 API docs

请求网址:POST https://api.intercom.io/conversations/search?query=updated_at>1590278400

【问题讨论】:

    标签: postman intercom


    【解决方案1】:

    Body 中的查询应该是 JSON 格式,而不是像您在示例中那样在 querystring 中:

    {
     "query":  {
        "field": "updated_at",
        "operator": ">",
        "value": 1590278400
      }
    }
    

    在 Postman 中看起来像这样(注意:不要忘记添加您的身份验证)

    【讨论】:

    • 我试过你的答案,但现在它返回一个新错误{ "type": "error.list", "request_id": "000scp4srbu9aphrf3q0", "errors": [ { "code": "invalid_query", "message": "Query body must contain a query hash" } ] }
    • 为了解决我的新问题,我刚刚将正文格式更改为 JSON
    猜你喜欢
    • 1970-01-01
    • 2023-03-17
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2020-02-21
    相关资源
    最近更新 更多