by default
ServiceConnect["GoogleCalendar"]
does not work, because Mathematica is not authorized. (I reported this as a bug already...)
I have been able to connect to the calendar using Python, and following the Google documentation.
However, I am wondering how I could pass a proper token. Here is a URL read that works:
token = Import["token.json", "RawJSON"]["token"];
url = "https://www.googleapis.com/calendar/v3/users/me/calendarList";
headers = {"Authorization" -> "Bearer " <> token};
response = URLRead[HTTPRequest[url, <|"Headers" -> headers|>], "Body"]
Yet ServiceConnect["GoogleCalendar"] does not work, but I feel that it must be possible with
SecuredAuthenticationKey
but so far, I only get errors one way or another....
Any suggestion?