我正在编写一个C#应用程序来使用Linkedin的API.
我希望能够照顾"人"(名字+姓氏)并检索有关这一群人的所有可能信息 with the same name
我目前正在使用我自己的REST API实现与People-Search API调用一起使用.
这是我的请求,有效:
https://api.linkedin.com/v1/people-search:(people:(id,first-name,last-name,headline,picture-url),num-results)?
Run Code Online (Sandbox Code Playgroud)
这样做(有:first-name=parameter&last-name=parameter after the ? mark)
问题是,我想要检索更多信息,如:标题,行业,当前公司,当前学校等.请参阅此处的可能参数列表
这种表示法就是他们所说的Field Selectors
我如何构建我的API调用,以便我可以获得有关某人的所有可能信息?
小智 40
以下是获取用户个人资料的所有内容的网址:
需要Oauth2访问令牌.
这是一个很好的字符串列表(Java):
apiUrl
+ "/v1/people/~:("
+ "id,"
+ "first-name,"
+ "last-name,"
+ "headline,"
+ "picture-url,"
+ "industry,"
+ "summary,"
+ "specialties,"
+ "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),"
+ "associations," /* Full Profile */
+ "interests,"
+ "num-recommenders,"
+ "date-of-birth,"
+ "publications:("
+ "id,"
+ "title,"
+ "publisher:(name),"
+ "authors:(id,name),"
+ "date,"
+ "url,"
+ "summary),"
+ "patents:("
+ "id,"
+ "title,"
+ "summary,"
+ "number,"
+ "status:(id,name),"
+ "office:(name),"
+ "inventors:(id,name),"
+ "date,"
+ "url),"
+ "languages:("
+ "id,"
+ "language:(name),"
+ "proficiency:(level,name)),"
+ "skills:("
+ "id,"
+ "skill:(name)),"
+ "certifications:("
+ "id,"
+ "name,"
+ "authority:(name),"
+ "number,"
+ "start-date,"
+ "end-date),"
+ "courses:("
+ "id,"
+ "name,"
+ "number),"
+ "recommendations-received:("
+ "id,"
+ "recommendation-type,"
+ "recommendation-text,"
+ "recommender),"
+ "honors-awards,"
+ "three-current-positions,"
+ "three-past-positions,"
+ "volunteer"
+ ")"
+ "?oauth2_access_token="+ token;
Run Code Online (Sandbox Code Playgroud)
Pau*_*ega 24
你已经记下了符号,你需要做的就是添加其余的字段选择器,在需要的地方嵌套它们:
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
Run Code Online (Sandbox Code Playgroud)
请记住,根据" 配置文件字段"文档,您只能获得当前用户的第一级连接的培训.
| 归档时间: |
|
| 查看次数: |
57687 次 |
| 最近记录: |