PHP库的LinkedIn Oauth范围问题 [英] LinkedIn Oauth scope issue with PHP library

查看:71
本文介绍了PHP库的LinkedIn Oauth范围问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我一直在尝试实现最近添加到LinkedIn API的新范围功能.我目前使用"simple-linkedinphp"库作为我的LinkedIn oauth库(http://code.google.com/p/simple-linkedinphp/).

I have been trying to implement the new scope features that were recently added to the LinkedIn API. I am currently using the "simple-linkedinphp" library for as my LinkedIn oauth lib (http://code.google.com/p/simple-linkedinphp/ ).

按照LinkedIn文档上的说明,我在请求令牌URL中添加了"scope"参数,如下所示:

Following the directions on the LinkedIn docs, I added the "scope" param to my request token URL as such:

  const _URL_REQUEST    = 'https://api.linkedin.com/uas/oauth/requestToken?scope=r_basicprofile+r_emailaddress';

但是,这没有什么效果.我仍然获得与以前相同的o-auth对话,但没有电子邮件地址的任何其他权限.任何人都可以在PHP中正常工作吗?任何帮助,我们将不胜感激.

However, this had little effect. I still get the same o-auth dialogue as before without any additional permissions for the e-mail address. Anyone get this working correctly in PHP yet? Any help here would be appreciated.

推荐答案

您需要创建新的应用程序API密钥,并使用它们来查看更新的身份验证屏幕.

You need to create new Application API keys and use those to see the updated authentication screens.

这篇关于PHP库的LinkedIn Oauth范围问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆