API获得Linkedin建议

API获得Linkedin建议

本文介绍了如何使用Linkedin API获得Linkedin建议?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何在PHP中获得LinkedIn推荐?

How to get LinkedIn recommendations in PHP?

如何从linkedIn API中检索educations, recommendationsReceived, skills, twitterAccounts和用户个人资料数据?

How to retrieve educations, recommendationsReceived, skills, twitterAccounts and user profile data from linkedIn API?

如何输出此类型:(这是虚拟数据)

{
  "educations":  {
    "_total": 1,
    "values":  [
       {
        "degree": "MCA",
        "endDate":  {
          "year": 2010
        },
        "fieldOfStudy": "English",
        "id": 68487593,
        "schoolName": "Computer Studies",
        "startDate":  {
          "year": 2007
        }
      }
    ]
  },
  "firstName": "Firstname",
  "id": "k4AWESnyv",
  "recommendationsReceived":  {
    "_total": 1,
    "values":  [
       {
        "recommendationText": "Good Morning.",
        "recommender":  {
          "firstName": "First Name",
          "headline": "Student",
          "lastName": "patel",
          "pictureUrl": "https://media.licdn.com/mpr/mprx/0_V24ZjoIoyZaEFqbRgzWupnoHNs6ORLamtWosKRfVQR3qkss3v",
          "publicProfileUrl": "https://www.linkedin.com/pub/linkedinuser/17/5ba/23a"
        }
      }
    ]
  },
  "skills":  {
    "_total": 9,
    "values":  [
       {
        "id": 2,
        "skill":  {
          "name": "PHP"
        }
      },
       {
        "id": 3,
        "skill":  {
          "name": "Joomla"
        }
      },
       {
        "id": 4,
        "skill":  {
          "name": "Magento"
        }
      },
       {
        "id": 7,
        "skill":  {
          "name": "WordPress"
        }
      },
       {
        "id": 8,
        "skill":  {
          "name": "AJAX"
        }
      },
       {
        "id": 9,
        "skill":  {
          "name": "MySQL"
        }
      },
       {
        "id": 10,
        "skill":  {
          "name": "Web Design"
        }
      },
       {
        "id": 13,
        "skill":  {
          "name": "E-commerce"
        }
      },
       {
        "id": 14,
        "skill":  {
          "name": "HTML5"
        }
      }
    ]
  },
  "twitterAccounts":  {
    "_total": 1,
    "values":  [
       {
        "providerAccountId": "123456789",
        "providerAccountName": "twitterusername"
      }
    ]
  }
}

推荐答案

要获取linkedin建议,您需要执行以下操作:

To get the linkedin recommendations, you need to do the following:

  1. 通过OAuth对用户进行身份验证.
  2. 通过调用API来检索个人资料数据.

要检索educations, recommendationsReceived, skills, twitterAccounts以及用户个人资料数据,您的API调用应为:

To retrieve educations, recommendationsReceived, skills, twitterAccounts along with user profile data, your API call would be:

https://api.linkedin.com/v1/people/~:(id,first-name,skills,educations,recommendations-received,twitter-accounts)?format=json

这篇关于如何使用Linkedin API获得Linkedin建议?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-01 04:06