OAuth and google Calendar

Got a LiveCode personal license? Are you a beginner, hobbyist or educator that's new to LiveCode? This forum is the place to go for help getting started. Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller

Post Reply
mimu
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 76
Joined: Tue Mar 05, 2013 7:00 pm
Contact:

OAuth and google Calendar

Post by mimu » Tue Nov 27, 2018 10:46 pm

I've prepared a small demo stack to read and write to the google calendar api.

Everything else then complete, but for me it works.
(much room for improvements)

The stack uses the OAuth2 Library and the livecode calendar widget to select a date.
The calendar widget can be found here:
https://livecode.com/extensions/calendar/1-0-0/

Most of the code is in the card script. You have to put in your Google Client-ID and Clientkey
you can get it under https://console.developers.google.com/apis/
Create oAuthClientId
of type "Sonstige"

I would be interested if it works for other livecoders,
any feedback is welcome
Attachments
calendarGoogleTest.livecode.zip
(6.91 KiB) Downloaded 544 times

golife
Posts: 115
Joined: Fri Apr 02, 2010 12:10 pm

Re: OAuth and google Calendar

Post by golife » Thu Dec 13, 2018 7:48 pm

Very well done. :D
I have tested this GoogleCalendarTest shortly (more extensively later) and it works "out of the box". The problem will be for developers to start getting accustomed to the Google Developer API creating a project, assigning the scope (here Calendar scopes) , receiving the client id and client secret and entering that into this application.

FourthWorld
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 10043
Joined: Sat Apr 08, 2006 7:05 am
Contact:

Re: OAuth and google Calendar

Post by FourthWorld » Thu May 25, 2023 4:04 am

Is there a more recent version of this example updated for Google's API keys and perhaps any other changes needed for their March update?
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn

alexsunny123
Posts: 1
Joined: Sun Feb 07, 2021 10:55 am
Contact:

Re: OAuth and google Calendar

Post by alexsunny123 » Sun Jun 22, 2025 2:55 pm

Hi Mimu,

Thank you for sharing this demo stack — really appreciate the effort you put into integrating OAuth2 with Google Calendar using LiveCode. I tested it on my end and it works well once the client credentials are set up properly.

The use of the calendar widget for date selection is a nice touch makes the UI clean and user-friendly. There’s definitely room to build on top of this, but as a starting point, it’s solid.

Looking forward to any future enhancements you might share. If I end up expanding the functionality (like adding event deletion or handling recurring events), I’ll be happy to contribute back here as well.

Cheers,

Post Reply