【问题标题】:Trello API directions lead me to error every timeTrello API 指导每次都会导致我出错
【发布时间】:2020-09-01 18:02:42
【问题描述】:

我正在尝试使用 cURL 自动执行 json 导出。我正在按照他们的指示找到here

我按照他们在第 1 步中的指示并使用此请求开始导出

curl -X POST 'https://trello.com/1/organizations/{organizationNameOrId}/exports?key={key}&token={token}' --data 'attachments=false'

这将启动导出并给我与他们的示例相同的输出。然后我转到第 2 步。我按照他们的指示使用此请求

curl https://trello.com/1/organizations/{orgIdOrName}/exports/{exportId}?key={key}&token={token}

但我没有得到与他们相同的输出,而是收到一条消息,上面写着

can't read the state of an export

然后当我按下回车键时我得到

[1] random number 
 Done "then a bunch of empty space" + my original request in step 2 minus the token

有没有其他人遇到过这个问题?好像哪里都找不到了

【问题讨论】:

    标签: api curl trello


    【解决方案1】:

    想通了。他们在步骤 2 中缺少 url 周围的撇号。应该是

    curl 'https://trello.com/1/organizations/{orgIdOrName}/exports/{exportId}?key={key}&token={token}'
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2018-03-22
      • 2022-10-20
      • 1970-01-01
      • 2021-03-18
      • 2012-04-08
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多