Java LinkedIn获得连接

Java LinkedIn获得连接,java,linkedin,Java,Linkedin,在我获得访问令牌和密码后,访问我的帐户我想通过他们的个人资料获得我的连接 Connections cc = client.getConnectionsForCurrentUser(); for(Person p :cc.getPersonList()) { System.out.println(p.getLastName()); System.out.println("Industry "+p.getIndustry()); System.out.printl

在我获得访问令牌和密码后,访问我的帐户我想通过他们的个人资料获得我的连接

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();
}

但是我得到的大多数字段都是空的。我不知道我哪里出错了,有人能帮忙吗?

如果连接没有提供您请求的信息,该字段的结果将确实为空。您是否能够检索到有关您的连接的任何信息,例如名字、姓氏?

您是否得到了解决方案,因为我面临无法从客户端获取任何连接的问题。getConnectionsForCurrentUser;它返回null,请与我共享一些代码以获取当前用户的连接。