Skip to content
This repository was archived by the owner on Sep 13, 2018. It is now read-only.
This repository was archived by the owner on Sep 13, 2018. It is now read-only.

New here - Unable to login  #30

Description

@maxdelob

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions