upcoming events

this page uses my PHP feedreader class to fetch all events, past and future, currently in my upcoming events list via the upcoming developer API functions, and present them using a custom XSLT.

the specific function used to receive the relevant XML:

http://upcoming.yahooapis.com/services/rest/?api_key=[API KEY]&method=user.getWatchlist&token=[token]&user_id=[YOUR UPCOMING ID]&show=all

because upcoming uses token-based authentication, this experiment also contains some extra lines of code that send my API key and frob to receive a valid token.

http://upcoming.yahooapis.com/services/rest/?api_key=[API KEY]&method=auth.getToken&frob=[FROB]

this part of the code also reutilises bits from my feedreader class to check if a call to the API is needed, or if it's just a case of displaying the cached feedreader output (not requiring an API call to getWatchlist, and therefore not even requiring a call to get a valid token in the first place).