# 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:** 1\
**Showing post:** 7

<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

---

_[View the full topic](https://devforum.zoom.us/t/how-to-setup-a-zoom-meeting-from-google-apps-script/7252)._
