Tôi đang cố gắng chứng minh API Trello nhưng tôi đang gặp sự cố với quy trình xác thực.Cửa sổ xác thực API Trello chưa đóng
var ConnectToTrello = function() {
//console.log("Authenticating");
Trello.authorize({
type: 'popup',
name: 'Outlook Trello Add-In',
scope: { read: true, write: true, account: true },
success: authenticationSuccess,
error: authenticationError
});};
này mở ra một popup nơi tôi có thể thực hiện xác thực, sau đó tôi nhận được chuyển hướng (trong cửa sổ bật lên) để https://trello.com/1/token/approve và không có gì xảy ra. Cửa sổ bật lên không đóng.
Mọi trợ giúp sẽ được đánh giá cao.
tải the code here
Nội dung của 'authenticationSuccess' và' authenticationError' là gì? –
var authenticationSuccess = function (response) { console.log (phản hồi); $ ('# btnAuthenticate'). Hide(); } xác thực varError = function (error) { console.log (lỗi); } –
tôi đã thêm mã nguồn [ở đây] (https://onedrive.live.com/redir?resid=B715E2BC3D00A40C!874085&authkey=!AMwyd0USglqKHb4&ithint=file%2czip) –