Open GoogleCodeExporter opened 9 years ago
Hi,
i too faced the same error. Is there any workaround to this? I am trying to run
the demo on code.google.com (Calendar demo v3).
Thanks
Original comment by hearbeat...@gmail.com
on 13 May 2014 at 7:48
Hello,
I also got this error when I deployed Calendar example with some additional
code:
I got error when I call .build() method.
static Drive loadDriveClient() {
LOGGER.info("loadDriveClient method");
HttpTransport httpTransport = new NetHttpTransport();
JsonFactory jsonFactory = new JacksonFactory();
AppIdentityCredential credential =
new AppIdentityCredential.Builder(Collections.singleton(DriveScopes.DRIVE)).build();
GoogleClientRequestInitializer keyInitializer =
new CommonGoogleClientRequestInitializer(API_KEY);
LOGGER.info("create drive builder");
Builder newDriveBuilder =new Drive.Builder(httpTransport, jsonFactory, null)
.setHttpRequestInitializer(credential)
.setGoogleClientRequestInitializer(keyInitializer);
LOGGER.info("build drive service");
Drive service = newDriveBuilder.build();
LOGGER.info("drive service builded");
return service;
}
Original comment by danil.ni...@aldigit.com
on 2 Feb 2015 at 3:48
Original issue reported on code.google.com by
ajaszc...@gmail.com
on 28 Jun 2013 at 8:11