Replacement for setJsonHttpRequestInitializer for Drive.Builder

view story

http://stackoverflow.com – I'm using google-api-services-drive-v2-rev39-java-1.12.0-beta (Latest during the time writing) I found that setJsonHttpRequestInitializer no longer appear in Drive.Builder final HttpTransport transport = new NetHttpTransport(); final JsonFactory jsonFactory = new GsonFactory(); GoogleCredential credential = new GoogleCredential(); // authToken is String. credential.setAccessToken(authToken); // ClientCredentials.KEY is String, generated from https://code.google.com/apis/console/b/0/?api=drive#project:369087808589 Drive service = new Drive.Builder(transport, jsonFa (HowTos)