doucan4873 2012-09-26 06:17
浏览 59
已采纳

PHP LinkedIn API与Jav​​ascript LinkedIN API集成

first I was using JAVASCRIPT linkedin API for getting profile information and its working very fine. But now I want to use PHP LinkedIN API for my Project, but the point is I want to use PHP API just for authorization purpose and rest of code I want in Javascript such as getting profile information and people search method calls using IN object.

I am able to authorize using PHP API but my problem is when I try to use IN object it tells that first you need to authorize.

So is their any mechanism by which Javascript API knows that I authorized the user already and then start to use the IN object?

  • 写回答

1条回答 默认 最新

  • dqwh0108 2012-09-28 08:29
    关注

    If you're signed in via linkedin and have previously authorized the application, you can start making javascript calls directly. JS API uses OAuth 2.0, where tokens are exchanged transparently via the token and the server. This authentication flow is much easier than the server-based authentication, which still uses OAuth 1.0a (I think).

    But if you need to make PHP-based calls after authenticating via JS, this article should help you: https://developer.linkedin.com/documents/exchange-jsapi-tokens-rest-api-oauth-tokens

    However, it seems that you want to authenticate via PHP, and then make calls via JS, which I don't understand why.

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥20 机器学习能否像多层线性模型一样处理嵌套数据
  • ¥20 西门子S7-Graph,S7-300,梯形图
  • ¥50 用易语言http 访问不了网页
  • ¥50 safari浏览器fetch提交数据后数据丢失问题
  • ¥15 matlab不知道怎么改,求解答!!
  • ¥15 永磁直线电机的电流环pi调不出来
  • ¥15 用stata实现聚类的代码
  • ¥15 请问paddlehub能支持移动端开发吗?在Android studio上该如何部署?
  • ¥20 docker里部署springboot项目,访问不到扬声器
  • ¥15 netty整合springboot之后自动重连失效