myuhe/org-gcal.el — pull request #14 by mattdeboard (2014-03-28 01:37:20+00:00)
Title: Add more robust response handling for org-gcal-fetch.

This branch adds a `cond` expression to more explicitly handle various response cases. In particular my case was that I did not enable the Calendar API and so was getting a 403. This resulted in the endless loop referenced in myuhe#11.

To eliminate the endless loop, I cycle the token after receiving a 403. This will transparently allow the user to then go enable the Calendar API, then run `org-gcal-fetch` successfully.

In order to clarify the need to enable the Calendar API (one of those "obvious in hindsight" things...) I updated the installation steps to include doing so.