It looks like you're new here. If you want to get involved, click one of these buttons!
User userModel = connection.generateSession("Request Token", "Secret API");
System.out.println(userModel.accessToken);
System.out.println(userModel.publicToken);
connection.setAccessToken(userModel.accessToken);
connection.setPublicToken(userModel.publicToken);
Example ex = new Example ();
ex.getProfile(connection);