Calendar Integration Values

124 views
Skip to first unread message

John More

unread,
Oct 21, 2018, 8:13:19 AM10/21/18
to golang-nuts
I can not find any documentation indicating how to retrieve the Calendar Integration Values below. I can create and manipulate calendars add events etc using the calendar library.
Is it possible that these values are simply not available?

Thanks any assistance is appreciated.

John More

Screenshot from 2018-10-21 08-04-52.png


Caleb Mingle

unread,
Oct 22, 2018, 12:51:02 AM10/22/18
to jm...@tele-metron.com, golan...@googlegroups.com
John,

Can you provide more details on which "calendar library" you are referring to?

The link you've highlighted in Google calendar points to a file in iCalendar format. You'll probably want an iCalendar parser to handle the file, I've personally used this one, but it doesn't handle everything in the spec: https://github.com/luxifer/ical.

Depending on the parser that you choose it may have functionality to fetch a file by URL, but most likely you'll need to perform an HTTP request to that URL, read the body, and pass it to a parser.

- mingle


--
You received this message because you are subscribed to the Google Groups "golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


--
Caleb Mingle

John More

unread,
Oct 23, 2018, 4:58:48 PM10/23/18
to golang-nuts
Mingle,
The library I am using is the "google.golang.org/api/calendar/v3" which accesses the  https://www.googleapis.com/calendar/v3 REST interface.
I would like to read the secret address of a calendar that I create in a G Suite domain user's account so I can dynamically forward it to another company that insist they need it to watch for events on the calendar. I know it is not appropriate to do this with the private address but this was set up before my time and it will be changed but for now history has me trapped.
I have tried the API Explorer and I have reviewed the library code and can not see where this value is part of any structure.

Thank you for your reply.

John

Caleb Mingle

unread,
Oct 23, 2018, 6:15:52 PM10/23/18
to John More, golang-nuts
John,

Apologies, I misunderstood your initial question.

I wouldn’t be surprised if those values were not exposed via an API, but I’ll do some research and report back. 

- mingle

Caleb Mingle

unread,
Oct 23, 2018, 8:24:36 PM10/23/18
to John More, golang-nuts
John,

Here's what I found.  I believe this private URL includes what Google refers to as a "magic cookie" for authentication.

An old post (from 2008) asks if this can be retrieved via an API, with a response from Google:

The magic cookie is not exposed through the API for security reason, it can
only be retrieved from going directly into the Calendar UI.

While this is pretty old, I've found similar questions from people attempting to do the same as you, and the answers over the years all seem to indicate that this is only exposed via the UI.


If you happen to find otherwise, I'd love to know.

Good luck!
- mingle

John More

unread,
Oct 24, 2018, 9:13:45 AM10/24/18
to golang-nuts
Thank You.
I was afraid that would be the answer, but my research could not match yours. 
I will keep looking; however there does have to be a better way to provide API access to outside resources without involving my domain users . I always use a service account with DWD enabled and use my admin account to access calendars in my domain. 

Thanks
John
Reply all
Reply to author
Forward
0 new messages