Discussion:
XML link
Steven Hook
2007-03-27 07:24:44 UTC
Permalink
Hey,
I have an SMS program that can reply to an SMS with data it gets from
a URL to an XML file,
I was hoping I'd be able to have like a keyword like "upcoming" so
that would reply with any upcoming evens from the google calendar XML
link, is this possible?
Steven
Ryan Boyd (Google)
2007-03-27 14:07:46 UTC
Permalink
Hi Steven,

Yes, that sounds like it would be possible. You would need to grab
your private magic-cookie feed URL from your calendar settings page..
this is labeled as the 'Private address' and should have a XML button
next to it.

http://www.google.com/calendar/feeds/<email address>/private-
<magiccookie>/basic?
orderby=starttime&sortorder=ascending&futureevents=true&singleevents=true

This will get you, at max, the next 5 events sorted in ascending order
by their starttime (instead of the usual descending update time
ordering), will only retrieve events that are occurring in the future,
and converts recurring events into their single instances.

Note: you must trust the SMS program security features and that it
will not to distribute the data or the magic cookie to others. This
magic cookie will always be able to be used to retrieve your events
off your calendar unless you click the 'reset private URLs' button on
the calendar settings page.

Cheers,

-Ryan
Post by Steven Hook
Hey,
I have an SMS program that can reply to an SMS with data it gets from
a URL to an XML file,
I was hoping I'd be able to have like a keyword like "upcoming" so
that would reply with any upcoming evens from the google calendar XML
link, is this possible?
Steven
Steven Hook
2007-03-27 15:05:23 UTC
Permalink
TX :)
Will give it a bash
It's a public calendar, so not an issue to have public viewing it.
Hence the SMS thing
Steven
Post by Ryan Boyd (Google)
Hi Steven,
Yes, that sounds like it would be possible. You would need to grab
your private magic-cookie feed URL from your calendar settings page..
this is labeled as the 'Private address' and should have a XML button
next to it.
http://www.google.com/calendar/feeds/<email address>/private-
<magiccookie>/basic?
orderby=starttime&sortorder=ascending&futureevents=true&singleevents=true
This will get you, at max, the next 5 events sorted in ascending order
by their starttime (instead of the usual descending update time
ordering), will only retrieve events that are occurring in the future,
and converts recurring events into their single instances.
Note: you must trust the SMS program security features and that it
will not to distribute the data or the magic cookie to others. This
magic cookie will always be able to be used to retrieve your events
off your calendar unless you click the 'reset private URLs' button on
the calendar settings page.
Cheers,
-Ryan
Post by Steven Hook
Hey,
I have an SMS program that can reply to an SMS with data it gets from
a URL to an XML file,
I was hoping I'd be able to have like a keyword like "upcoming" so
that would reply with any upcoming evens from the google calendar XML
link, is this possible?
Steven
Steven Hook
2007-03-27 15:18:38 UTC
Permalink
How do I make it just 5 events?
Steven
Post by Ryan Boyd (Google)
Hi Steven,
Yes, that sounds like it would be possible. You would need to grab
your private magic-cookie feed URL from your calendar settings page..
this is labeled as the 'Private address' and should have a XML button
next to it.
http://www.google.com/calendar/feeds/<email address>/private-
<magiccookie>/basic?
orderby=starttime&sortorder=ascending&futureevents=true&singleevents=true
This will get you, at max, the next 5 events sorted in ascending order
by their starttime (instead of the usual descending update time
ordering), will only retrieve events that are occurring in the future,
and converts recurring events into their single instances.
Note: you must trust the SMS program security features and that it
will not to distribute the data or the magic cookie to others. This
magic cookie will always be able to be used to retrieve your events
off your calendar unless you click the 'reset private URLs' button on
the calendar settings page.
Cheers,
-Ryan
Post by Steven Hook
Hey,
I have an SMS program that can reply to an SMS with data it gets from
a URL to an XML file,
I was hoping I'd be able to have like a keyword like "upcoming" so
that would reply with any upcoming evens from the google calendar XML
link, is this possible?
Steven
Ryan Boyd (API)
2007-03-27 15:29:43 UTC
Permalink
Hi Steven,

- Original message -
How do I make it just 5 events?

Sorry I missed that query param in the earlier post.

Add the following to the end of the URL:
&max-results=5

For more info on additional query params, please see the reference
guide accessible from the calendar data api docs:
http://code.google.com/apis/calendar

Also, if the calendar is already public, you can use /public/ instead
of /private-<magicCookie>/ in the URL.

Cheers,
-Ryan
Post by Steven Hook
How do I make it just 5 events?
Steven
Post by Ryan Boyd (Google)
Hi Steven,
Yes, that sounds like it would be possible. You would need to grab
your private magic-cookie feed URL from your calendar settings page..
this is labeled as the 'Private address' and should have a XML button
next to it.
http://www.google.com/calendar/feeds/<email address>/private-
<magiccookie>/basic?
orderby=starttime&sortorder=ascending&futureevents=true&singleevents=true
This will get you, at max, the next 5 events sorted in ascending order
by their starttime (instead of the usual descending update time
ordering), will only retrieve events that are occurring in the future,
and converts recurring events into their single instances.
Note: you must trust the SMS program security features and that it
will not to distribute the data or the magic cookie to others. This
magic cookie will always be able to be used to retrieve your events
off your calendar unless you click the 'reset private URLs' button on
the calendar settings page.
Cheers,
-Ryan
Post by Steven Hook
Hey,
I have an SMS program that can reply to an SMS with data it gets from
a URL to an XML file,
I was hoping I'd be able to have like a keyword like "upcoming" so
that would reply with any upcoming evens from the google calendar XML
link, is this possible?
Steven
Loading...