I am trying to do a Yahoo oAuth using hello.js
. Please find my code that I have written:
window.onload = function()
{
hello.init(
{
// "yahoo" : "M0FZ5t7i"
"yahoo" : "dj0yJmk9WGJDUHpwMkxBNUxEJmQ9WVdrOU4xcFBZVUo1TldrbWNHbzlNQS0tJnM9Y29uc3VtZXJzZWNyZXQmeD1jMw--"
},
{
redirect_uri:'staging.name.com',
oauth_proxy: "https://auth-server.herokuapp.com/proxy"
//https://auth-server.herokuapp.com/ https://auth-server.herokuapp.com/proxy
});
}
and on click of a button I have added:
hello("yahoo").login().then(function()
{
// Get Profile
return hello("yahoo").api('me');
}).then(function(p)
{
console.log(p.name);
}).then(null, function(e){
console.error(e);
alert(e);
});
I am getting invalid credential. Also my question is in client_id
, what should I use consumer key or Appid?
I have also https://auth-server.herokuapp.com/ to add as a proxy. What field value should go in it? Also what does domain and reference stand for?