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.

Log in API: data information #33

Description

@CiccioK

Hi all,
I am trying to use the login API, but something goes wrong! :'(

Follow the code lines:
var futapi = require("fut-api");

var apiClient = new futapi();

function twoFactorCodeCb(next){
/* send your authentication code with the "next" method */
next("numeric code (6 digits) that I receive when I make changes to my profile account");
}
apiClient.login("xxxx@gmail.com","xxxpwdxxx","SECRET ANSWER to the secret question", "xone",
twoFactorCodeCb,
function(error,response){
if(error) {
return console.log(error);
}
console.log("logged in.");

    apiClient.getCredits(function(error, response){ });
    
});  

Received error: "Error: Unknow response. Unable to login."

Please help me!
Thanks

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