我有一个应用程序:a)通过LinkedIn对用户进行身份验证,以及b)通过oauth验证对Linkedin API http://api.linkedin.com的访问权限。问题是,我的身份验证不允许我访问通用LinkedIn站点http://www.linkedin.com。oauth不工作,对于基本LinkedIn http请求
例如,这个工程:
https://api.linkedin.com/v1/people/~?oauth2_access_token=AQXSs5c6R-6e_F3 ...
...但是,这并不:
https://www.linkedin.com/?oauth2_access_token=AQXSs5c6R-6e_F3 ...
是否有人可以解释这里的限制?
REF:Another conversation I am having, on the same topic。
马丁,我觉得我已经非常说明这一点。你还需要什么别的吗? – khrm
感谢khm,我正在寻找来自LinkedIn的官方答复,他们的oauth2_access_token让我可以访问哪些内容。如上所述,我有OAuth致力于API调用,但我也尝试将它用于www.linkedin.com请求。 –
欢迎。我也给了这个链接https://developer.linkedin.com/docs/oauth2。在第4步中,他们提到您可以访问api。 “一旦你获得了一个访问令牌,你就可以代表用户开始进行认证的API请求了,这可以通过在LinkedIn的API调用HTTP调用中包含一个”Authorization“头来实现。” – khrm