vendredi 28 avril 2017

How to get phone no over response in digits twitter fabric using javascript?

I

Digits.logIn().done(this.onLoginsuccess).fail(this.onLoginFailure);
  onLoginsuccess(res){
      console.log(res);
    }
    onLoginFailure(res)
    {
      console.log(res);
    }
    
 var oAuthHeaders = loginResponse.oauth_echo_headers;
  var verifyData = {
authHeader: oAuthHeaders['X-Verify-Credentials-Authorization'],
apiUrl: oAuthHeaders['X-Auth-Service-Provider']
  };

  $.post('/verify', verifyData)
.done(function(){ window.reload(); });

In onLoginsuccess method , i'm only getting two values, there is no phone no over the response. After '/verify' gives an error for me. I'm struck here, How do i solve this?




Aucun commentaire:

Enregistrer un commentaire