[owncloud-devel] Adding calendar events via external PHP script

2016-04-30 Thread Kontakt
Hi,

on the server I use for OC I also have a web page running for a small
community. For the community I have written several services in PHP.
Some generate appointments. It would be really cool if these
appointments could be written into OC so that people have them in their
calendar. Is there an API for the calendar I could use to put the
appointments into OC with an external PHP script?

So far I got this hint:
"the best thing what you can do is to execute plain CalDAV calls to the
http://example.com/remote.php/caldav endpoint. Thats the only "API" what
is used / provided by ownCloud."

But I am not sure what is meant by plain CalDAV calls. I am looking for
a php file that I can include in my script, which would give me a
function like createNewAppointment(startDate, endDate, summary,
description). Does this function exist?

My second approach would be to write the appointments directly into my
MySQL database. I assume that the appointments are just an entry in
*_clndr_objects but I do not get what the uri column is and how to
create that uri. Do I need also an ics file for each entry? If so where
do I have to put it?

Finding the right calendar is no problem because the login names are
identical.

Thanks
Florian
___
Devel mailing list
Devel@owncloud.org
http://mailman.owncloud.org/mailman/listinfo/devel


[owncloud-devel] Adding an ics file to an existing calendar

2016-04-30 Thread Kontakt
Hi,

I am using a service that provides an ics file with appointments.
Unfortunately I cannot subscribe to that dynamically generated ics file
with my phone (SailfishOS). One work around would be subscribe to the
service via ownCloud and import the ics file to an existing calendar.
Then I could sync my Jolla to that calendar via CalDav. So far I was not
able to find a way to do that. Would that be possible?

Thanks
Florian
___
Devel mailing list
Devel@owncloud.org
http://mailman.owncloud.org/mailman/listinfo/devel


Re: [owncloud-devel] Adding an ics file to an existing calendar

2016-04-30 Thread Chris
Hi,

> So far I was not able to find a way to do that. Would that be possible? 

there is currently no feature to subscribe to external calendars. A feature
request for this is available here:

https://github.com/owncloud/calendar/issues/132



--
View this message in context: 
http://owncloud.10557.n7.nabble.com/Adding-an-ics-file-to-an-existing-calendar-tp17186p17187.html
Sent from the Developers mailing list archive at Nabble.com.
___
Devel mailing list
Devel@owncloud.org
http://mailman.owncloud.org/mailman/listinfo/devel