@ Override public String getAuthorization ( String authorizationUrl ) throws CubeSensorsException { System . out . println ( "authorizationUrl:" + authorizationUrl ) ; System . out . print ( "provide authorization code:" ) ; try ( Scanner in = new Scanner ( System . in ) ) { String authorization = in . nextLine ( ) ; return authorization ; } }
Prints the authorizationUrl the user will open the url and obtain an authorization key . When prompted the user should provide the authorization key .