Hello I have been trying to access all card that are in my Kanboard using NodeJS, though I’m currently stuck at the authentication part.
This is what I currently have:
const axios = require('axios').default;
axios({
method: 'get',
url: 'https://todo.site.net/jsonrpc.php',
headers: {
'Content-Type': 'application/json;charset=UTF-8',
'X-API-Auth': 'api_key',
}
}).then(function(res) {
console.log(res['data'])
})
The output I get:
{ jsonrpc: '2.0',
error: { code: -32700, message: 'Parse error' },
id: null }
Any ideas what I might be doing wrong?