webOS Nation Forums >  webOS apps and software >  webOS development > HOWTO: Add entries to any calendar
HOWTO: Add entries to any calendar

  Reply
 
LinkBack Thread Tools Display Modes
Old 09/09/2009, 03:32 PM   #1 (permalink)
Member
 
Join Date: Jul 2009
Location: Sweden
Posts: 127
Likes Received: 1
Thanks: 7
Thanked 71 Times in 13 Posts
Default HOWTO: Add entries to any calendar

Hi fellows,

After playing around with the calendar application and monitoring the dbus I found out how to submit entries to any calendar you want on your phone. Apparently the Pre calendar application does not use the /crud services but rather the / services directly (i.e. com.palm.calendar instead of com.palm.calendar/crud). The API's are also different.

If you want to try it out, I use it in v.0.2.0 of Quick Event http://www.precentral.net/homebrew-apps/quick-event

Example:

- Your application needs to be in the com.palm domain.

- use for example the method getCalendarsByAccount on palm://com.palm.calendar to get a list of all calendars

- use the setEvent method instead of the createEvent method (same syntax).

- to get a list of all events in all calendars in a time frame you can use the getEvents method ( example: {"calendarId": "all", "startDate": 1200000000000, "endDate": 1200010000000, "subscribe": false, "freeTimes": true})

I really hope Palm change the security system around this. I really like a per application approval instead of giving super privileges to applications that happen to be in the com.palm domain.

So feel free to do something good with it. And be nice!

Cheers,
Mike
__________________
My apps: Binary clock, Quick Event, Birthdays
d00heden is offline   Reply With Quote
Reply

 

Tags
api, calendar, dbus, service

Thread Tools
Display Modes



 


Content Relevant URLs by vBSEO 3.6.0