LinkedIn 获取连接
获得访问令牌和秘密后,访问我的帐户,我想获取与他们的个人资料的连接,
Connections cc = client.getConnectionsForCurrentUser();
for(Person p :cc.getPersonList()) {
System.out.println(p.getLastName());
System.out.println("Industry "+p.getIndustry());
System.out.println("currentStatus "+p.getCurrentStatus());
System.out.println("link "+p.getPublicProfileUrl());
System.out.println("position "+p.getEducations());
System.out.println();
}
但我得到的大多数字段都是空的。我不知道我哪里出错了,有人可以帮忙吗?
After I get the access token and secret, access my account I want to get my connections with their profiles,
Connections cc = client.getConnectionsForCurrentUser();
for(Person p :cc.getPersonList()) {
System.out.println(p.getLastName());
System.out.println("Industry "+p.getIndustry());
System.out.println("currentStatus "+p.getCurrentStatus());
System.out.println("link "+p.getPublicProfileUrl());
System.out.println("position "+p.getEducations());
System.out.println();
}
but most of the fields I get are null. I don't know where I went wrong, can anyone help?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
如果连接未提供您所请求的信息,则该字段的结果实际上将为空。您是否能够检索有关您的联系人的任何信息,例如名字、姓氏?
If a Connection hasn't provided the information you are requesting, the results for that field will indeed be null. Are you able to retrieve any information about your connections, such as first-name, last-name?