System.out.println("Access token: " + accessToken.getToken());
System.out.println("Token secret: " + accessToken.getTokenSecret());
final LinkedInApiClientFactory factory = LinkedInApiClientFactory.newInstance(consumerKeyValue, consumerSecretValue);
final LinkedInApiClient client = factory.createLinkedInApiClient(accessToken); // usuari que ha donat permis a l'aplicació degloba (ex: joan robledo)
//OPERACIONS API
System.out.println("Fetching profile for current user.");
Person profile = client.getProfileForCurrentUser(EnumSet.of(ProfileField.ID));
Person profile2 = client.getProfileById(profile.getId());
// en aquest punt caldria afegir la relació de l'usuari que ha donat permís (ex: joan robledo)