Examples of NetworkStatistics


Examples of org.springframework.social.linkedin.api.NetworkStatistics

    this.linkedIn = linkedIn;
  }
   
  @RequestMapping(value="/linkedin/connections", method=RequestMethod.GET)
  public String connections(Model model) {
    NetworkStatistics statistics = linkedIn.connectionOperations().getNetworkStatistics();
    model.addAttribute("firstDegreeCount", statistics.getFirstDegreeCount());
    model.addAttribute("secondDegreeCount", statistics.getSecondDegreeCount());
    model.addAttribute("connections", linkedIn.connectionOperations().getConnections());
    return "linkedin/connections";
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.