https://github.com/pascalrobert/cdav-connector
DavStore store = new DavStore("[email protected]", "YYZ",
"https://www.google.com/calendar/dav/[email protected]/user");
ArrayList<CalendarCollection> collections =
store.principalCollection().getCalendarHomeSet().getCalendarCollections();
for (CalendarCollection collection: collections) {
if (collection.getSupportedCalendarComponentSet().contains("VEVENT")) {
java.util.Calendar jesus = java.util.Calendar.getInstance();
jesus.set(java.util.Calendar.MONTH, java.util.Calendar.DECEMBER);
jesus.set(java.util.Calendar.DAY_OF_MONTH, 25);
Calendar calendar = new Calendar();
calendar.getProperties().add(new ProdId("-//Ben Fortuna//iCal4j
1.0//EN"));
calendar.getProperties().add(Version.VERSION_2_0);
calendar.getProperties().add(CalScale.GREGORIAN);
VEvent christmas = new VEvent(new Date(jesus.getTime()), "Christmas
Day");
UidGenerator ug = new UidGenerator("1");
christmas.getProperties().add(ug.generateUid());
calendar.getComponents().add(christmas);
ServerVCalendar vCal = collection.addVCalendar(calendar);
NSLog.out.appendln(vCal.geteTag());
jesus = java.util.Calendar.getInstance();
christmas.getStartDate().setDate(new Date(jesus.getTime()));
vCal.setVCalendar(calendar);
collection.updateVCalendar(vCal);
}
}
>
> No, it's read/write. You can use cdav-connector (search on GitHub) to do that.
>
> Envoyé de mon iPhone
>
>> Le 2014-12-09 à 14:12, Greg Smith <[email protected]> a écrit :
>>
>> Thanks, that may get me going for now. Is that a read only method? Do you
>> know of some sources of information for using this?
>>
>>> On Dec 9, 2014, at 11:00 AM, Pascal Robert wrote:
>>>
>>> I don't have an answer for OAuth2, but you could access the calendars by
>>> CalDAV instead of the API.
>>>
>>> ----- Mail original -----
>>> De: "Greg Smith" <[email protected]>
>>> À: "WebObjects-Dev" <[email protected]>
>>> Envoyé: Mardi 9 Décembre 2014 13:46:21
>>> Objet: Google Calendar access from WO
>>>
>>> Has anyone used the OAuth2 method within WO to access Google Calendar API?
>>> I have been using the gdata method but that is now dead. If someone has
>>> implemented this and has some code examples would be great. Thanks.
>>>
>>> Greg
>>> _______________________________________________
>>> Do not post admin requests to the list. They will be ignored.
>>> Webobjects-dev mailing list ([email protected])
>>> Help/Unsubscribe/Update your Subscription:
>>> https://lists.apple.com/mailman/options/webobjects-dev/probert%40macti.ca
>>>
>>> This email sent to [email protected]
>>
>
> _______________________________________________
> Do not post admin requests to the list. They will be ignored.
> Webobjects-dev mailing list ([email protected])
> Help/Unsubscribe/Update your Subscription:
> https://lists.apple.com/mailman/options/webobjects-dev/probert%40macti.ca
>
> This email sent to [email protected]
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list ([email protected])
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com
This email sent to [email protected]