Sto tentando di dimostrare l'API Trello ma sto riscontrando problemi con la procedura di autenticazione.popup di autenticazione API Trello non chiuso
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
});};
Questo apre un popup dove posso fare l'autenticazione, allora vengo reindirizzato (nel popup) per https://trello.com/1/token/approve e non succede nulla. Il popup non si sta chiudendo.
Qualsiasi aiuto sarebbe apprezzato.
scaricare the code here
Qual è il corpo di 'authenticationSuccess' e' authenticationError'? –
var authenticationSuccess = function (response) { console.log (risposta); $ ('# btnAuthenticate'). Hide(); } var authenticationError = function (error) { console.log (errore); } –
ho aggiunto il codice sorgente [qui] (https://onedrive.live.com/redir?resid=B715E2BC3D00A40C!874085&authkey=!AMwyd0USglqKHb4&ithint=file%2czip) –