Using Agile Client to get Boards returns Authentication error
GodwinUjeen opened this issue · comments
Godwin U commented
Hi,
I have tried to get all boards using agile client, however i tried it always returns,
{
"status": "fail",
"message": "Client must be authenticated to access this resource."
}
The Code I have tried:
const client = new AgileClient({
host: 'https://host.atlassian.net',
authentication: {
basic: {
email: '<my-email>',
apiToken: '<API-Token>',
},
},
newErrorHandling: true,
});
return client.board.getAllBoards();
I have tried using version 3 client also but it's not working.