# How to use Google calendar API with Processing desktop (Mac)

**URL:** <https://discourse.processing.org/t/how-to-use-google-calendar-api-with-processing-desktop-mac/39884>\
**Category:** Project Guidance\
**Created:** [November 26, 2022, 2:36pm UTC](https://discourse.processing.org/t/how-to-use-google-calendar-api-with-processing-desktop-mac/39884 "2022-11-26T14:36:29Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![dehyde](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/dehyde/32/5153_2.png) [@dehyde](https://discourse.processing.org/u/dehyde)\
**Post date:** [November 26, 2022, 2:36pm UTC](https://discourse.processing.org/t/how-to-use-google-calendar-api-with-processing-desktop-mac/39884/1 "2022-11-26T14:36:29Z")

</div>

Hay all!

I’m quite rusty with programming, processing and Java, hope somebody could help here:

**I’m trying to use google calendar’s API,** but it’s using something called “gradle” to build and everything’s quite confusing.

I’ve traced the steps here successfully:

[https://developers.google.com/calendar/api/quickstart/java](https://developers.google.com/calendar/api/quickstart/java?fbclid=IwAR0xJHf4u2UQPWKf3rEvC-hp01dtkByVo9CYbfwXl0F0UyEglEwe1pzjMhg)

But I’m not sure how to use that with my Processing project.

Hope somebody would be able to help here

May the gods smile upon you ![❤️](https://static.xx.fbcdn.net/images/emoji.php/v9/ted/2/16/2764.png)

---

<div class="post-metadata">

**Author:** ![josephh](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/josephh/32/210_2.png) [@josephh](https://discourse.processing.org/u/josephh)\
**Post date:** [November 26, 2022, 5:27pm UTC](https://discourse.processing.org/t/how-to-use-google-calendar-api-with-processing-desktop-mac/39884/2 "2022-11-26T17:27:54Z")

</div>

Hi @dehyde,

You are right, Gradle may seems confusing at first. It’s basically a build system for Java applications (like CMake is for C/C++).

You might want to look at [this template](https://github.com/enkatsu/processing-library-template-gradle) found in this thread:

> <https://stackoverflow.com/questions/50085023/how-to-use-gradle-in-a-processing-project>

---

<div class="post-metadata">

**Author:** ![dehyde](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/dehyde/32/5153_2.png) [@dehyde](https://discourse.processing.org/u/dehyde)\
**Post date:** [December 6, 2022, 7:09pm UTC](https://discourse.processing.org/t/how-to-use-google-calendar-api-with-processing-desktop-mac/39884/3 "2022-12-06T19:09:50Z")

</div>

Thanks Joseph!  
Does it mean it’s a complier?

Thank you for the link I’ll try it out asap! 🙏

---

<div class="post-metadata">

**Author:** ![josephh](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/josephh/32/210_2.png) [@josephh](https://discourse.processing.org/u/josephh)\
**Post date:** [December 6, 2022, 10:17pm UTC](https://discourse.processing.org/t/how-to-use-google-calendar-api-with-processing-desktop-mac/39884/4 "2022-12-06T22:17:25Z")

</div>

> [@dehyde](#):
>
> Does it mean it’s a complier?

No, Gradle uses a [Java compiler](https://en.wikipedia.org/wiki/List_of_compilers#Java_compilers) which outputs [`.class` files](https://en.wikipedia.org/wiki/Java_class_file) containing Java bytecode meant to be run by the Java Virtual Machine ([JVM](https://en.wikipedia.org/wiki/Java_virtual_machine)).

This might seem complicated at first but basically your Java code source files are transformed by the compiler into instructions that can be read by another program called the JVM. This program can then run your code in an optimized way and on any platform that can read those `.class` files (desktop, mobile, browser…).

For a basic Java project setup, you can take a look at this (and for your own curiosity):

[https://docs.gradle.org/current/samples/sample\_building\_java\_applications.html](https://docs.gradle.org/current/samples/sample_building_java_applications.html)
