如何检索有关 LinkedIn 帐户的所有可能信息?(API 使用 C#) [英] How to Retrieve all possible information about a LinkedIn Account ? (API using C#)
问题描述
我正在编写一个 C# 应用程序来使用 Linkedin 的 API.
I am writting an C# app to make use of Linkedin's API.
我希望能够查询人"(名字 + 姓氏)并检索关于这组人的所有可能信息同名
I want to be able to query "Person" (First Name + Last Name) and retrieve all the possible information about this group of people with the same name
我目前正在使用自己的 REST API 和 People-Search API 调用.
I am currently using my own implementation of the REST API alongside People-Search API calls.
这是一个我知道有效的请求示例:
Here's an example of a request that I know works:
https://api.linkedin.com/v1/people-search:(people:(id,first-name,last-name,headline,picture-url),num-results)?
我在运行它时使用:first-name=parameter&last-name=parameter 在 ?标记
问题是,我想检索更多信息,例如职位、行业、当前公司、当前学校等.请参阅 此处 获取可能的参数列表.
The problem is, I want to retrieve more information such as Title, Industry, Current-company, current-school etc. Refer here for the list of possible parameters.
这个符号就是他们所说的字段选择器
This notation is what they call Field Selectors
如何构建我的 API 调用,以便获取有关某人的所有可能信息?
How do i structure my API Call so i can get all the possible information about someone ?
推荐答案
您已经记下了符号,您需要做的就是添加其余的字段选择器,将它们嵌套在需要的地方:
You've already got the notation down, all you need to do is add the rest of the field selectors, nesting them where needed:
https://api.linkedin.com/v1/people-search:(people:(id,first-name,last-name,headline,picture-url,industry,positions:(id,title,summary,start-date,end-date,is-current,company:(id,name,type,size,industry,ticker)),educations:(id,school-name,field-of-study,start-date,end-date,degree,activities,notes)),num-results)?first-name=parameter&last-name=parameter
请记住,根据 Profile Field 文档,您只能获得以下方面的教育当前用户的 1 度连接.
Keep in mind that per the Profile Field docs, you can only get educations for 1st degree connections of the current user.
这篇关于如何检索有关 LinkedIn 帐户的所有可能信息?(API 使用 C#)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!