Getting Unauthroized error while Posting data using
var data = null; var xhr = new XMLHttpRequest(); xhr.addEventListener("readystatechange", function () { if (this.readyState === this.DONE) { console.log(this.responseText); } }); xhr.open("POST", "https://api.trello.com/1/cards/5c0e1b6c4d66a308f010b652/actions/comments?text=hello&key=my_key&token=my_token"); xhr.send(data);
i used the same App key and token which used to retrive card details and list details , the problem is am getting all those boards, lists, cards using the App key and token but can't post a string using the above API url ??