By plearmont on Wednesday, 10 February 2016
Posted in Pre-Sales
Replies 9
Likes 0
Views 7.4K
Votes 0
Hi,

jEvents does a great deal of what we need, however, we would like to be able to generate an event from our own php back end code.

Is there an API or utilities to do this? Even guidance on the correct functions and data sets? Or is this simply not possible

Many Thanks

Phil
Hi Phil,

Can your code create an iCal file? We are full iCal based and can import iCal files from the front or backend and on a routine.

Many thanks
Tony
·
Thursday, 11 February 2016 01:42
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Tony,

Thank you. It can't do anything at the minute...but it could easily do so. I have then two sub-questions:
Is there an .ics standard to which you conform?
How would the back end push an .ics file into jEvents

Many Thanks
·
Thursday, 11 February 2016 08:21
·
0 Likes
·
0 Votes
·
0 Comments
·
See https://tools.ietf.org/html/rfc5545 - we only support the event part not the TODO and FREEBUSY etc.
·
Thursday, 11 February 2016 09:35
·
0 Likes
·
0 Votes
·
0 Comments
·
Thats brilliant, just skimmed through and it apepars very clear on the .ics content building.

Do you have any feedback on the question of how to introduce this .ics file to jEvents via php in the back end?

Many Thanks
·
Thursday, 11 February 2016 10:58
·
0 Likes
·
0 Votes
·
0 Comments
·
When you have an ics file you simply import is as a calendar (use a file import for a one off import or a url import for an updatable one).

You could also look at a CSV file as alternative - see https://www.jevents.net/frequently-aske ... csv-format
·
Thursday, 11 February 2016 11:04
·
0 Likes
·
0 Votes
·
0 Comments
·
Thanks Geraint, but I don't believe that's my issue (or I am not following, so apologies in advance).

We create the event information in a different process (a review of a document) but the code which supports this review has the information necessary to create an event (dates, times, descriptions etc.). We want to automatically generate this event in the jevents calendar WITHOUT any further user interaction, ideally in the back end.

The calendar will then be accessed by users to see what events exist, download etc. as per normal, however, the CREATION process is systemic.

If I have been following the thread, I can create my event as an .ics file but I am still no wiser as to how the back end (by default php) can call the correct jevent routines to import this file.
·
Thursday, 11 February 2016 11:35
·
0 Likes
·
0 Votes
·
0 Comments
·
Write this ics file to a location on your server then import it as a URL and finally setup a cronjob to update the calendar from the URL location
·
Friday, 12 February 2016 07:49
·
0 Likes
·
0 Votes
·
0 Comments
·
Thanks Geraint,

Understood and will do. If jevents ever plan to create an API for this please let me know.
·
Sunday, 14 February 2016 12:07
·
0 Likes
·
0 Votes
·
0 Comments
·
We follow Joomla! conventions in our development roadmap so we'll probably take advantage of the yet-to-come webservices in Joomla! 3.6 and we'll adapt our extensions to them. There would be an API then, probably.
·
Wednesday, 17 February 2016 06:57
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post