简体   繁体   中英

Trello API - Create a new Card - name

I'm trying to create a new card in JavaScript with the Trello API. I have this:

const fetch = require('node-fetch');
fetch(`https://api.trello.com/1/cards?key=${key}&token=${token}&idList=${listId}&desc=test&name=${name}`, {
method: 'POST'
})

It works. But if the name ist test#1 it only save test . How can I fix this?

You'll need to encode first. Ex- "John#1" will be encoded to "John%231"

You can check this site -> https://www.urlencoder.org/

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM