Advertisement
Guest User

API v3 and TXP Calendar XML

a guest
Nov 17th, 2014
179
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.72 KB | None | 0 0
  1. <rss version="2.0">
  2.  
  3. <channel>
  4. <title>A Calendar</title>
  5. <link>http://www.yourwebsite.com</link>
  6. <description>A Calendar</description>
  7. <txp:variable name="timeMax"><txp:etc_date date="+7 days" format="%FT%T%z" /></txp:etc_date><txp:variable name="timeMin"><txp:etc_date date="today" format="%FT%T%z" /></txp:etc_date>
  8. <item>
  9. <title>A Calendar</title> <link>https://www.googleapis.com/calendar/v3/calendars/GOOGLECALENDARIDHERE/events?singleEvents=true&amp;orderBy=startTime&amp;timeMax=<txp:variable name="timeMax" />&amp;timeMin=<txp:variable name="timeMin" />&amp;fields=items(id%2Csummary%2Cdescription%2Cstart%2Cend%2Clocation%2Corganizer(displayName,email))&amp;key=YOURAPIKEYHERE</link>
  10. </item>
  11. </channel>
  12.  
  13. </rss>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement