javascript - Trello API - 创建新卡片 - 名称
问题描述
我正在尝试使用 Trello API 在 JavaScript 中创建一张新卡片。我有这个:
const fetch = require('node-fetch');
fetch(`https://api.trello.com/1/cards?key=${key}&token=${token}&idList=${listId}&desc=test&name=${name}`, {
method: 'POST'
})
有用。但如果名字test#1
是它只保存test
。我怎样才能解决这个问题?
解决方案
您需要先编码。例如-“John#1”将被编码为“John%231”
您可以查看此站点-> https://www.urlencoder.org/
推荐阅读
- python-3.x - 有没有办法在满足特定条件时立即停止 Scrapy 蜘蛛
- python - 在dict中使用默认值获取None
- graphql - 授权strapi graphql端点
- javascript - 访问字典数组中的元素
- r - R Shiny - R Sweave Report 中未打印正确的输出
- webassembly - 发射 ES6 mjs 时的 Emscripten FS
- azure-devops - 待审批时,如何在管道摘要中看到“测试和覆盖率”?
- jms - 如何使用 JmsListener 接收 MQMessage
- atom-editor - Atom 在使用自定义语法时随机停止正确突出显示
- c++ - 是否有可能将模数重载到;仅收到前导数字时;在 C++ 中返回数字/100?