@Test public void getUserProfile() { mockServer.expect(requestTo(LinkedInTemplate.BASE_URL + "~" + ProfileTemplate.PROFILE_FIELDS + "&oauth2_access_token=ACCESS_TOKEN")).andExpect(method(GET)) .andRespond(withSuccess(new ClassPathResource("profile.json", getClass()), MediaType.APPLICATION_JSON)); LinkedInProfile profile = linkedIn.profileOperations().getUserProfile(); assertEquals("z37f0n3A05", profile.getId()); assertEquals("Just a guy", profile.getHeadline()); assertEquals("Craig", profile.getFirstName()); assertEquals("Walls", profile.getLastName()); assertEquals("Computer Software", profile.getIndustry()); assertEquals("https: assertEquals("https: assertEquals("https: }
public LinkedInProfile getUserProfile() { return getUserProfile(PROFILE_FIELDS, LinkedInProfile.class); }
ProfileTemplate extends AbstractTemplate implements ProfileOperations { public LinkedInProfile getUserProfile() { return getUserProfile(PROFILE_FIELDS, LinkedInProfile.class); } }
ProfileTemplate extends AbstractTemplate implements ProfileOperations { public LinkedInProfile getUserProfile() { return getUserProfile(PROFILE_FIELDS, LinkedInProfile.class); } ProfileTemplate(RestOperations restOperations, ObjectMapper objectMapper); }
ProfileTemplate extends AbstractTemplate implements ProfileOperations { public LinkedInProfile getUserProfile() { return getUserProfile(PROFILE_FIELDS, LinkedInProfile.class); } ProfileTemplate(RestOperations restOperations, ObjectMapper objectMapper); String getProfileId(); String getProfileUrl(); LinkedInProfile getUserProfile(); LinkedInProfileFull getUserProfileFull(); LinkedInProfile getProfileById(String id); LinkedInProfile getProfileByPublicUrl(String url); LinkedInProfileFull getProfileFullById(String id); LinkedInProfileFull getProfileFullByPublicUrl(String url); LinkedInProfiles search(SearchParameters parameters); }
ProfileTemplate extends AbstractTemplate implements ProfileOperations { public LinkedInProfile getUserProfile() { return getUserProfile(PROFILE_FIELDS, LinkedInProfile.class); } ProfileTemplate(RestOperations restOperations, ObjectMapper objectMapper); String getProfileId(); String getProfileUrl(); LinkedInProfile getUserProfile(); LinkedInProfileFull getUserProfileFull(); LinkedInProfile getProfileById(String id); LinkedInProfile getProfileByPublicUrl(String url); LinkedInProfileFull getProfileFullById(String id); LinkedInProfileFull getProfileFullByPublicUrl(String url); LinkedInProfiles search(SearchParameters parameters);  }