【发布时间】:2016-12-29 18:55:08
【问题描述】:
嗨,我是新手,但我想从 trello 获取卡片详细信息作为对象,我使用角度来获取数据 但我得到的只是无效的密钥
代码
app.controller("TrelloController", function($http,$scope){
$http({method: 'GET', url:'https://api.trello.com/1/cards/4eea503d91e31d174600008f?fields=name,idList&member_fields=fullName&key=[0a45465a69bdbf89d7b0c64e77257665]&token=[genrated using trello]'})
.then(
function(data,response) {
console.log('result: ', data);
},
function(error) {
console.log('An error occured');
}
);
});
【问题讨论】:
-
trello 板详细信息的 URL 是:"api.trello.com/1/members/me/…" + appKey + "&token=";