# How to setup a zoom meeting from Google Apps script?

**URL:** <https://devforum.zoom.us/t/how-to-setup-a-zoom-meeting-from-google-apps-script/7252>\
**Category:** API and Webhooks\
**Created:** [December 30, 2019, 1:49am UTC](https://devforum.zoom.us/t/how-to-setup-a-zoom-meeting-from-google-apps-script/7252 "2019-12-30T01:49:52Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![alex3](https://avatars.discourse-cdn.com/v4/letter/a/71e660/32.png) [@alex3](https://devforum.zoom.us/u/alex3)\
**Post date:** [December 30, 2019, 1:49am UTC](https://devforum.zoom.us/t/how-to-setup-a-zoom-meeting-from-google-apps-script/7252/1 "2019-12-30T01:49:52Z")

</div>

**Description**  
I am writing a Google Apps script to schedule meetings for Google Calendar, but I also want to set up a zoom meeting for them(our Google Calendar service is integrated with zoom, so just one click will setup the zoom meeting). How should I do it? It seems I can use the URL Fetch service ([https://developers.google.com/apps-script/reference/url-fetch](https://developers.google.com/apps-script/reference/url-fetch)), but I cannot create a zoom app since the Google Calendar is managed by the company.

---

<div class="post-metadata">

**Author:** ![tommy](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/tommy/32/72769_2.png) [@tommy](https://devforum.zoom.us/u/tommy)\
**Post date:** [December 30, 2019, 5:34pm UTC](https://devforum.zoom.us/t/how-to-setup-a-zoom-meeting-from-google-apps-script/7252/2 "2019-12-30T17:34:42Z")

</div>

Hey @alex3,

I am not familiar with Google Apps script. Can you just add the Zoom meeting url to the calendar invite, or utilize the [Zoom Google Calendar integration](https://marketplace.zoom.us/apps/VG_p3Bb_TwWe_bgZmPUaXw)?

> [@alex3](#):
>
> but I cannot create a zoom app since the Google Calendar is managed by the company.

Not sure what you mean by this.

Thanks,  
Tommy

---

<div class="post-metadata">

**Author:** ![alex3](https://avatars.discourse-cdn.com/v4/letter/a/71e660/32.png) [@alex3](https://devforum.zoom.us/u/alex3)\
**Post date:** [December 30, 2019, 6:07pm UTC](https://devforum.zoom.us/t/how-to-setup-a-zoom-meeting-from-google-apps-script/7252/3 "2019-12-30T18:07:02Z")

</div>

Hi @tommy, thanks for your quick response. We have Zoom Google Calendar integration, which means I just need to click a button when I schedule a meeting from Google Calendar to set up zoom meeting. I want to implement this through Zoom API.

> Can you just add the Zoom meeting url to the calendar invite?

What I need is that when I go to the meeting room I added to the Google Calendar event, it should show on the zoom IPAD in the meeting room so people can start the meeting from the IPAD. It cannot be some pre-created zoom meeting url.

---

<div class="post-metadata">

**Author:** ![alex3](https://avatars.discourse-cdn.com/v4/letter/a/71e660/32.png) [@alex3](https://devforum.zoom.us/u/alex3)\
**Post date:** [December 30, 2019, 6:29pm UTC](https://devforum.zoom.us/t/how-to-setup-a-zoom-meeting-from-google-apps-script/7252/4 "2019-12-30T18:29:36Z")

</div>

> but I cannot create a zoom app since the Google Calendar is managed by the company.

Is creating a zoom app the only way to use Zoom API? I suppose I need to install the app, but I am not the zoom admin of the company.

---

<div class="post-metadata">

**Author:** ![tommy](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/tommy/32/72769_2.png) [@tommy](https://devforum.zoom.us/u/tommy)\
**Post date:** [December 30, 2019, 10:41pm UTC](https://devforum.zoom.us/t/how-to-setup-a-zoom-meeting-from-google-apps-script/7252/5 "2019-12-30T22:41:37Z")

</div>

Hey @alex3,

You are using Zoom Rooms right?

Are you trying to create a meeting via the Zoom API, and then add it to the calendar event via Google App Scripts?

> [@alex3](#):
>
> Is creating a zoom app the only way to use Zoom API? I suppose I need to install the app, but I am not the zoom admin of the company.

If you create a [User Level OAuth App](https://marketplace.zoom.us/docs/guides/getting-started/app-types/create-oauth-app), you do not need to be a Zoom admin to use the APIs. If you do not have access to the Zoom App Marketplace, ask your Zoom admin to give you the developer, marketplace, and integrations permissions.

> [@Invalid redirect using company login](https://devforum.zoom.us/t/invalid-redirect-using-company-login/5965/6):
>
> Thanks @steven.wadsworth, I am guessing you don’t have the development permissions. Can you have your Zoom Account Admin give you a role ([https://zoom.us/role](https://zoom.us/role)) with the the Developer, Marketplace, and Integrations permissions? Thanks, Tommy

Thanks,  
Tommy

---

<div class="post-metadata">

**Author:** ![alex3](https://avatars.discourse-cdn.com/v4/letter/a/71e660/32.png) [@alex3](https://devforum.zoom.us/u/alex3)\
**Post date:** [December 30, 2019, 11:44pm UTC](https://devforum.zoom.us/t/how-to-setup-a-zoom-meeting-from-google-apps-script/7252/6 "2019-12-30T23:44:39Z")

</div>

I am new to Zoom API, which is really complicated to me. I don’t know what is Zoom Rooms. I need a way to access Zoom API within Google App Scripts. So In Google App Scripts, I want to create a calendar event, and add zoom support.

---

<div class="post-metadata">

**Author:** ![tommy](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/tommy/32/72769_2.png) [@tommy](https://devforum.zoom.us/u/tommy)\
**Post date:** [December 31, 2019, 12:20am UTC](https://devforum.zoom.us/t/how-to-setup-a-zoom-meeting-from-google-apps-script/7252/7 "2019-12-31T00:20:06Z")

</div>

Hey @alex3,

The easiest way to start is to use a JWT Token, here is how to generate one:

> [@How to create JWT token using REST api in c#](https://devforum.zoom.us/t/how-to-create-jwt-token-using-rest-api-in-c/6620/4):
>
> Thanks @nvanderson, yes you can do that! @vaibhav.bhosale, go here: [https://marketplace.zoom.us/develop/create](https://marketplace.zoom.us/develop/create), create a JWT app, then on the “App Credentials” page you will see an already generated JWT token: Thanks, Tommy

Then to create a meeting, call the [Create Meeting API](https://marketplace.zoom.us/docs/api-reference/zoom-api/meetings/meetingcreate), use the following Google App Scripts code:

```js
var response = UrlFetchApp.fetch("https://api.zoom.us/v2/users/me/meetings", {
  'method' : 'post',
  'contentType': 'application/json',
  'payload' : JSON.stringify({
    'topic': 'Title of Meeting',
    'type': 2,
    'start_time': '2020-01-03T12:00:00Z',
    'duration': 30
  }),
  'headers': {
   'Authorization': 'Bearer JWT_TOKEN_HERE'
  }
});
Logger.log(response.getContentText());

```

`Logger.log(response.getContentText());` will return a JSON body with the Zoom meeting link, which you can insert into the Google Calendar Event.

Let me know if that helps!

Thanks,  
Tommy

---

<div class="post-metadata">

**Author:** ![atif.naseem22](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/atif.naseem22/32/5712_2.png) [@atif.naseem22](https://devforum.zoom.us/u/atif.naseem22)\
**Post date:** [April 10, 2020, 8:07am UTC](https://devforum.zoom.us/t/how-to-setup-a-zoom-meeting-from-google-apps-script/7252/8 "2020-04-10T08:07:29Z")

</div>

Hi. I create zoom meetings using api. I want to send that join url to attendees using calendar invite. I am new to this. Thanks.

---

<div class="post-metadata">

**Author:** ![tommy](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/tommy/32/72769_2.png) [@tommy](https://devforum.zoom.us/u/tommy)\
**Post date:** [April 11, 2020, 1:28am UTC](https://devforum.zoom.us/t/how-to-setup-a-zoom-meeting-from-google-apps-script/7252/9 "2020-04-11T01:28:21Z")

</div>

Hey @atif.naseem22,

You will have to send the join\_url via a third party API like [SendGrid](http://sendgrid.com/).

Or, you can use [meeting registration](https://support.zoom.us/hc/en-us/articles/211579443-Registration-for-Meetings) and Zoom will send it.

Thanks,  
Tommy

---

<div class="post-metadata">

**Author:** ![DeveloperBot](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/developerbot/32/12632_2.png) [@DeveloperBot](https://devforum.zoom.us/u/DeveloperBot)\
**Post date:** [August 21, 2020, 8:15pm UTC](https://devforum.zoom.us/t/how-to-setup-a-zoom-meeting-from-google-apps-script/7252/10 "2020-08-21T20:15:04Z")

</div>

Closed on August 21, 2020, 8:15pm UTC


