2016-08-23 49 views
0

您好,我是新來這個主板的詳細資料,但我想我的使用角度來獲取數據 從trello領證細節對象,但所有我得到是無效的關鍵試圖從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'); 
     } 
    ); 


}); 
+0

trello板詳細信息的URL是:「https://api.trello.com/1/members/me/boards?filter=open&fields=name&key=」+ appKey +「&token =」; – Ved

回答

1

這是文檔是這麼說:

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]只是佔位符。

刪除這些括號[],你應該沒問題。