final BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
final String verificationCode = br.readLine();
System.out.println("Fetching access token...");
provider.retrieveAccessToken(consumer, verificationCode.trim());
System.out.println("Access token: " + consumer.getToken());
System.out.println("Token secret: " + consumer.getTokenSecret());
// Subsequent calls to Salesforce will fail if verification code is set