如何检索有关LinkedIn帐户的所有可能信息?(使用C#的API)

Mar*_*ins 31 api linkedin

我正在编写一个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

以下是获取用户个人资料的所有内容的网址:

https://api.linkedin.com/v1/people/~:(id,first-name,last-name,headline,picture-url,industry,summary,specialties,positions:(id,title,summary,start-日期,结束日期,是流,公司:(ID,名称,类型,规模,行业,股票代码))的教育:(ID,校名,现场的学习,开始日期,结束日期,度,活动,笔记),社团,兴趣,NUM-引荐,日期的出生,出版物:(ID,标题,发布者:(名),作者:(ID,姓名),日期,URL,摘要),专利:(ID,标题,摘要,数量,状态:(ID,姓名),办公电话:(名),发明(ID,姓名),日期,URL)语言:(ID,语言:(名),熟练掌握: (级别,姓名)),技能:(ID,技能:(名)),认证:(ID,姓名,权限:(名称),数量,开始日期,结束日期),课程:(ID,姓名,号),建议,接受:(ID,推荐型,推荐文本,推荐),荣誉,奖励,三电流的岗位,三位得票位置,志愿者)oauth2_access_token = PUT_YOUR_TOKEN_HERE?

需要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)

请记住,根据" 配置文件字段"文档,您只能获得当前用户的第一级连接的培训.