Example #1
0
 @Test
 public void test() {
   logger.debug("Running '{}'...", name.getMethodName());
   con = usersConnectionRepository.createConnectionRepository("GeraldXv");
   Connection<Twitter> twitter = con.findPrimaryConnection(Twitter.class);
   twitterApi = twitter.getApi();
   Connection<Google> google = con.findPrimaryConnection(Google.class);
   googleApi = google.getApi();
   System.out.println(twitterApi.friendOperations().getFriends().get(0).getName());
   // System.out.println(googleApi.personOperations().getPerson("110377639084744464746").get);
 }
 @RequestMapping(value = "/twitter/followers", method = RequestMethod.GET)
 public String followers(Model model) {
   model.addAttribute("profiles", twitter.friendOperations().getFollowers());
   return "twitter/friends";
 }