从LinkedIn检索用户帐户信息

时间:2015-05-19 10:34:58

标签: linkedin

我需要在我的应用程序中从LinkedIn检索用户帐户信息,以便对用户进行一些分析

姓名,用户描述,经验,帖子等信息

是否有提取这些信息的API?

1 个答案:

答案 0 :(得分:0)

Android Mobile SDK

LinkedIn API Documentation

如果您使用Android移动sdk,以下代码将为您完成工作

  

使用以下网址获取LinkedIn数据。

private static final String HOST = "api.linkedin.com";
private static final String FETCH_BASIC_INFO = "https://" + host + "/v1/people/~:(id,first-name,last-name,headline,location,industry)";
private static final String FETCH_CONTACT = "https://" + host + "/v1/people/~:(num-connections,email-address,phone-numbers,main-address)";
private static final String FETCH_PROFILE_PIC = "https://" + host + "/v1/people/~:(picture-urls::(original))";
private static final String SHARE_URL = "https://" + host + "/v1/people/~/shares";
  

请勿忘记在两个移动设备上设置访问以上信息的权限   应用程序以及在LinkedIn中注册应用程序

private static Scope buildScope() {
    return Scope.build(Scope.R_BASICPROFILE, Scope.W_SHARE, Scope.R_EMAILADDRESS, Scope.R_CONTACTINFO);
}
相关问题