How to set Projection in Google Calendar with Calendar.Builder

ascenEape

New Member
To access ExtendedProperties, I need to inform the full projection.Every example I've seen, they do so by URL:https://developers.google.com/google-apps/calendar/v2/reference#Event_feeds\[code\]https://www.google.com/calendar/feeds/userID/visibility/projection\[/code\]But I do not have that URL. I create the service as follows:\[code\]Calendar createService() throws GeneralSecurityException, IOException { GoogleCredential credential = new GoogleCredential.Builder() .setTransport(HTTP_TRANSPORT).setJsonFactory(JSON_FACTORY) .setServiceAccountId(EMAIL) .setServiceAccountScopes(CalendarScopes.CALENDAR) .setServiceAccountPrivateKeyFromP12File(new File(getClass().getClassLoader().getResource(FILE_NAME).getFile())) .build(); Calendar service = new Calendar.Builder(HTTP_TRANSPORT, JSON_FACTORY, credential) .setApplicationName("Rokko-Leggis") .build(); return service; }\[/code\]I tried to save and retrieve a ExtendedProperty but failedHow can I save a custom field?
 
Back
Top