hello.js雅虎API集成
hello.js Yahoo API Integration
我正在尝试使用hello.js
进行Yahoo oAuth。请找到我写的代码:
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
});
}
点击我添加的按钮:
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);
});
我收到的凭据无效。另外,我的问题是在client_id
中,我应该使用什么消费者密钥或Appid?
我也有https://auth-server.herokuapp.com/添加为代理。其中应该包含哪些字段值?域和引用代表什么?
client_id
应该是OAuth1中的consumer_key- 在您的情况下,
domain
应为staging.name.com
reference
是一个任意值,即"本地雅虎"
redirect_uri
的值应该是一个完整的URI(即http://staging.name.com/redirect.html
。或一个相对路径。
相关文章:
- 如何将FBjavascript API与我的后台集成
- 将PHP集成到Javascript中,使用Google API显示地图标记
- 将Google Places API与Rails应用程序集成
- underscore.js,名为“”的全局对象;出口;和livefyre javascript API-集成冲突
- hello.js雅虎API集成
- 通过JS API集成BIRT Actuate的iHub
- Javascript 客户端框架与 Rails JSON API - 如何进行集成测试
- Facebook与javascript FB Graph api的集成 墙上的帖子 Firefox 中的未知错误
- 如何将谷歌放置 API 结果数组与淘汰赛集成
- 将Highcharts与REST API集成
- Youtube Data API 集成存在问题
- 将Google Maps API v3集成到WordPress页面中
- 通过API将Angularjs集成到django项目中
- 如何将JWT身份验证与Web API集成
- 谷歌地图API javascript集成wordpress
- 如何将Parse Javascript API与Appcelerator集成而不使用未记录的调用?
- JavaScript Soundcloud API集成-无法读取属性'uri'的定义
- 使用请求获取API结果,并集成到Hubot响应中
- 以面向对象的方式集成的Google Maps API
- 集成快速感知API到我的应用程序