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/