试图从 trello 获取董事会详细信息
Trying to get board details from trello
嗨,我是新手,但我想从 trello 获取卡片详细信息作为对象,我使用 angular 获取数据
但我得到的只是无效密钥
代码
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');
}
);
});
文档是这么说的:
https://api.trello.com/1/cards/4eea503d91e31d174600008f?fields=name,idList&member_fields=fullName&key=[application_key]&token=[optional_auth_token]
[application_key]
和 [optional_auth_token]
只是占位符。
删除这些括号[]
,你应该没问题。
嗨,我是新手,但我想从 trello 获取卡片详细信息作为对象,我使用 angular 获取数据 但我得到的只是无效密钥
代码
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');
}
);
});
文档是这么说的:
https://api.trello.com/1/cards/4eea503d91e31d174600008f?fields=name,idList&member_fields=fullName&key=[application_key]&token=[optional_auth_token]
[application_key]
和 [optional_auth_token]
只是占位符。
删除这些括号[]
,你应该没问题。