1617181920212223242526
public class DailyMileCli { public static void main(String[] args) throws Exception { System.out.println(""); DailyMileClient dmc = null; if (args.length > 0) { dmc = configureDMVFromPropsFile(args[0]); } else { dmc = configureDMCFromPrompts();
68697071727374
//ignore } } } return new DailyMileClient(props.getProperty("oauthToken")); }
79808182838485
System.out.println("Please open a brower and go to:" + DailyMileAuthenticator.buildAuthorizeUrl(clientId, redirect)); String oauthToken = getUserInput("Please enter your oauth token:"); return new DailyMileClient(oauthToken); }