public JSONObject getAccountInfo ( String idToken ) throws GitkitClientException , GitkitServerException { try { // Uses idToken to make the server call to GITKit JSONObject params = new JSONObject ( ) . put ( "idToken" , idToken ) ; return invokeGoogle2LegOauthApi ( "getAccountInfo" , params ) ; } catch ( JSONException e ) { throw new GitkitServerException ( "OAuth API failed" ) ; } }
Uses idToken to retrieve the user account information from GITkit service .