Question:What does the following code do?
try {
    String token = GoogleAuthUtil.getToken(this, email, "https://www.googleapis.com/auth/devstorage.read_only");
    System.out.println(token);
} catch (IOException e) {
    System.out.println("IOException");
} catch (UserRecoverableAuthException e) {
    System.out.println("UserRecoverableAuthException");
} catch (GoogleAuthException e) {
    System.out.println("GoogleAuthException"); 
}
 

A prints token 

B prints IOException 

C prints UserRecoverableAuthException 

D prints GoogleAuthException 

+ Answer
+ Report
Total Preview: 3497

Copyright © 2024. Powered by Intellect Software Ltd