Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/sql-server-2005/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Linkedin-j-update.getUpdateContent().getPerson().getCurrentStatus()在使用Linkedin-j时始终返回NULL_Linkedin_Linkedin J_Linkedin Jsapi_Spring Social Linkedin_Linkedin Gem - Fatal编程技术网

Linkedin-j-update.getUpdateContent().getPerson().getCurrentStatus()在使用Linkedin-j时始终返回NULL

Linkedin-j-update.getUpdateContent().getPerson().getCurrentStatus()在使用Linkedin-j时始终返回NULL,linkedin,linkedin-j,linkedin-jsapi,spring-social-linkedin,linkedin-gem,Linkedin,Linkedin J,Linkedin Jsapi,Spring Social Linkedin,Linkedin Gem,我正在尝试获取Linkedin用户的网络更新 我的代码是- //Network ---> System.out.println("Linkedin Users Network ---> Details..."); @SuppressWarnings("deprecation") Set<NetworkUpdateType> nUpdate = EnumSet.of(NetworkUpdateType.

我正在尝试获取Linkedin用户的网络更新

我的代码是-

//Network --->
            System.out.println("Linkedin Users Network ---> Details...");
            @SuppressWarnings("deprecation")
            Set<NetworkUpdateType> nUpdate = EnumSet.of(NetworkUpdateType.SHARED_ITEM, NetworkUpdateType.STATUS_UPDATE);
            int start =0;
            int count =20;
            Network network = client.getNetworkUpdates(nUpdate, start, count);
            System.out.println("Total updates fetched:" + network.getUpdates().getTotal());

            for (Update update : network.getUpdates().getUpdateList()) 
            {
                System.out.println("-------------------------------");
                System.out.println(update.getUpdateKey() + ":" + update.getUpdateContent().getPerson().getFirstName() + " " 
                                    + update.getUpdateContent().getPerson().getLastName() + "->" + update.getUpdateContent().getPerson().getCurrentStatus());
                if (update.getUpdateComments() != null) 
                    {
                        System.out.println("Total comments fetched:" + update.getUpdateComments().getTotal());
                        for (UpdateComment comment : update.getUpdateComments().getUpdateCommentList()) 
                        {
                                System.out.println(comment.getPerson().getFirstName() + " " + comment.getPerson().getLastName() + "->" + comment.getComment());                         
                        }
                    }
            }
//网络-->
System.out.println(“Linkedin用户网络--->详细信息…”);
@抑制警告(“弃用”)
Set numpdate=EnumSet.of(NetworkUpdateType.SHARED\u项,NetworkUpdateType.STATUS\u UPDATE);
int start=0;
整数计数=20;
Network=client.getNetworkUpdates(numpdate、start、count);
System.out.println(“获取的总更新:+network.getUpdates().getTotal());
对于(更新:network.getUpdates().getUpdateList())
{
System.out.println(“------------------------------------”;
System.out.println(update.getUpdateKey()+”:“+update.getUpdateContent().getPerson().getFirstName()+”“
+update.getUpdateContent().getPerson().getLastName()+“->”+update.getUpdateContent().getPerson().getCurrentStatus());
if(update.getUpdateComments()!=null)
{
System.out.println(“获取的总注释:+update.getUpdateComments().getTotal());
对于(UpdateComment注释:update.getUpdateComments().getUpdateCommentList())
{
System.out.println(comment.getPerson().getFirstName()+“”+comment.getPerson().getLastName()+“->”+comment.getComment());
}
}
}
但是这里-

update.getUpdateContent().getPerson().getCurrentStatus()

始终返回NULL


任何建议-我需要做什么。?

对我来说同样的问题。没有人帮助我们。奇怪的问题或者没有人更新库。