Wednesday, 10 February 2016
  9 Replies
  7.4K Visits
0
Votes
Undo
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
Thursday, 11 February 2016 01:42
·
#165235
0
Votes
Undo
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

JEvents Club members can get priority forum support at the Support Forum. As well as access to a variety of custom JEvents addons and benefits. Join the JEvents club today!Join the JEvents club today!

Thursday, 11 February 2016 08:21
·
#165236
0
Votes
Undo
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 09:35
·
#165237
0
Votes
Undo
See https://tools.ietf.org/html/rfc5545 - we only support the event part not the TODO and FREEBUSY etc.

JEvents Club members can get priority forum support at the Support Forum. As well as access to a variety of custom JEvents addons and benefits. Join the JEvents club today!

Thursday, 11 February 2016 10:58
·
#165238
0
Votes
Undo
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 11:04
·
#165239
0
Votes
Undo
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

JEvents Club members can get priority forum support at the Support Forum. As well as access to a variety of custom JEvents addons and benefits. Join the JEvents club today!

Thursday, 11 February 2016 11:35
·
#165240
0
Votes
Undo
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.
Friday, 12 February 2016 07:49
·
#165241
0
Votes
Undo
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

JEvents Club members can get priority forum support at the Support Forum. As well as access to a variety of custom JEvents addons and benefits. Join the JEvents club today!

Sunday, 14 February 2016 12:07
·
#165242
0
Votes
Undo
Thanks Geraint,

Understood and will do. If jevents ever plan to create an API for this please let me know.
Wednesday, 17 February 2016 06:57
·
#165243
0
Votes
Undo
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.
  • Page :
  • 1
There are no replies made for this post yet.

Members Area

Show your support

Unlike many Joomla calendars we do not charge to download JEvents - please show your support for this project by becoming a member of the JEvents Club Club members get access to early releases, exclusive member support forums, and Silver and Gold members can use many exciting JEvents addons

Your membership will ensure that JEvents continues to be the best events calendar for Joomla.