Difference between revisions of "User:Nava Muni/ics"
Jump to navigation
Jump to search
(created) |
m (reformatted a bit - read more cleanly and succinctly) |
||
Line 5: | Line 5: | ||
... will result in a web page being returned displaying the service's 'usage' information. | ... will result in a web page being returned displaying the service's 'usage' information. | ||
<div style="border:dashed black 2px;margin:2em;padding:1em"> | |||
<h3>Generic and Simple ICS V2.0 File Generator.</h3> | |||
<hr><br><div> | |||
<div style='padding-left:10px'> | |||
Usage:<div style='padding-left:10px;font-family:monospace;font-size:10pt'> | |||
<nowiki>http://host/gen-ics.php</nowiki> | |||
<div style='padding-left:10px'> | |||
?job=mk | |||
[&cal=...] | |||
&title=... | |||
&details=... | |||
[&location=...] | |||
[&host=...] | |||
[&url=...] | |||
&start=... | |||
{&end=...|&dur=...} | |||
[&tz=...] | |||
</div></div></div></div> | |||
</div> | |||
<div id="box"> | |||
== Usage == | |||
<div style="padding:0.5em"> | |||
<code><pre style="font-size:1.2em"><nowiki>http://HOST/gen-ics.php?</nowiki> ...</pre></code> | |||
{|border=1 | {|border=1 | ||
!parameter!!value/example!!opt/req!!description | !parameter!!value/example!!opt/req!!description | ||
Line 31: | Line 56: | ||
|} | |} | ||
Upon issuing a correctly-formatted URL, an {{Mono|ICS | |||
Upon issuing a correctly-formatted URL, an {{Mono|ICS}}/iCal file will be returned. | |||
</div></div> |
Latest revision as of 07:22, 13 October 2008
This simple web service generates an ICS (iCal) file.
A bare call to the service ...
http://HOST/gen-ics.php
... will result in a web page being returned displaying the service's 'usage' information.
Generic and Simple ICS V2.0 File Generator.
Usage:
http://host/gen-ics.php
?job=mk [&cal=...] &title=... &details=... [&location=...] [&host=...] [&url=...] &start=... {&end=...|&dur=...} [&tz=...]
Usage
http://HOST/gen-ics.php? ...
parameter | value/example | opt/req | description |
---|---|---|---|
job | mk | req | 'make' is the only action supported at this time |
cal | name | opt | name of the calendar |
title | title | req | title of event |
details | details | req | details of event |
location | location | opt | location of event |
host | host | opt | host or event facilitator |
url | url | opt | informational URL |
start | start-date/time | req | starting time and date in ISO 8601 format |
end | end-date/time | 1-of | ending time and date in ISO 8601 format |
dur | duration | 1-of | during of event in standard PHP4/5 date format. |
tz | timezone | opt | timezone in ISO 8601 format |
Upon issuing a correctly-formatted URL, an ICS/iCal file will be returned.