Hi all, first thanks for the work here, this seems pretty awesome but I can't fully appreciate since I can't login. I guess I don't call the authentification code properly but I can't make it work.
Is this the way to log in ?
var futapi = require("fut-api");
var apiClient = new futapi([]);
function twoFactorCodeCb(next){
/* send your authentication code with the "next" method */
next("myemail, myPassword, MyAnwser, ps4");
}
apiClient.login("email","password","awnser", "platform",
twoFactorCodeCb,
function(error,response){
if(error) {
return console.log(error);
}
console.log("logged in.");
apiClient.getCredits(function(error, response){ });
}
);
Thanks for the help.
Max
Hi all, first thanks for the work here, this seems pretty awesome but I can't fully appreciate since I can't login. I guess I don't call the authentification code properly but I can't make it work.
Is this the way to log in ?
var futapi = require("fut-api");
var apiClient = new futapi([]);
function twoFactorCodeCb(next){
/* send your authentication code with the "next" method */
next("myemail, myPassword, MyAnwser, ps4");
}
apiClient.login("email","password","awnser", "platform",
twoFactorCodeCb,
function(error,response){
if(error) {
return console.log(error);
}
console.log("logged in.");
apiClient.getCredits(function(error, response){ });
}
);
Thanks for the help.
Max