如何使用Linkedin API获取Linkedin推荐?

6

如何在PHP中获取领英推荐?

如何从领英API检索教育,收到的推荐,技能,Twitter账户和用户个人资料数据?

如何输出以下类型的结果: (这是虚拟数据)

{
  "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提取您网站的推荐的重复问题。 - viral
1个回答

6
要获得linkedin的推荐,请按照以下步骤操作:
  1. 通过OAuth验证用户。
  2. 通过API调用检索个人资料数据。
为了检索包括用户资料数据在内的educations、recommendationsReceived、skills和twitterAccounts,您的API调用将是: https://api.linkedin.com/v1/people/~:(id,first-name,skills,educations,recommendations-received,twitter-accounts)?format=json

1
这个有更多信息的链接吗? - Shaun Roselt

网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接