此 API 目前仅适用于 Linkedin 合作伙伴
Per the 文档 https://developer.linkedin.com/documents/people-search-api,以下模式用于人物搜索 API:
http://api.linkedin.com/v1/people-search:(people:(id,first-name,last-name,picture-url,headline),num-results)?first-name=Steve&last-name=Smith
所有查询字符串参数都是可选的(完整列表位于文档页面上),并且可以在以下位置找到指定的字段选择器这一页 https://developer.linkedin.com/documents/profile-fields.
您需要指定字段选择器为“people”的原因是 People Search API 还可以返回“facet”,可在搜索 UI 中使用它来提供有关结果的信息。在本例中,我们将返回可以解析的位置方面并将其转换为一组复选框,类似于 LinkedIn.com 搜索页面上的复选框:
http://api.linkedin.com/v1/people-search:(facets:(code,buckets:(code,name)),people:(id,first-name,last-name,picture-url,headline),num-results)?first-name=Steve&last-name=Smith&facets=location
您可以在休息控制台 http://developer.linkedin.com/rest-console.