How to Get Meeting List by using JWT

Description
I have a couple of accounts, and create meetings in each accounts.
then, I want to list-up there meetings.
I made JWT apps in each accounts, and try to get JWT tokens.
However I have a two errors.

Error

  • JWT tokens are time out
  • I couldn’t get meeting list well

Which App Type (OAuth / Chatbot / JWT / Webhook)?
JWT

Which Endpoint/s?
https://api.zoom.us/v2/users/(acount’ mail address)/meetings

How To Reproduce (If applicable)
Steps to reproduce the behavior:

  1. I wrote this script in GoogleAppsScript
function test(){
  var response = UrlFetchApp.fetch("https://api.zoom.us/v2/users/(account' mailaddress)/meetings", {
    'method' : 'get',
    'contentType': 'application/json',
    'payload' : JSON.stringify({
      page_size:30
    }),
    'headers': {
      'Authorization': 'Bearer (JWT token)'
    }
  });
  var encoded_json = JSON.parse(response)
  console.log(encoded_json)
}
  1. See error
    the log was this
{ uuid: 'G********************w==',
  id: 9*********5,
  host_id: '0*****************Q',
  host_email: '******@***.ne.jp',
  topic: 'Zoom Meeting',
  type: 2,
  status: 'waiting',
  start_time: '2020-12-26T15:00:54Z',
  duration: 60,
  timezone: 'Asia/Tokyo',
  created_at: '2020-12-26T15:00:54Z',
  start_url: 'https://zoom.us/s/9*********5?zak=ey******Z2ZCjiMrg',
  join_url: 'https://zoom.us/j/9*********5',
  settings: 
   { host_video: true,
     participant_video: true,
     cn_meeting: false,
     in_meeting: false,
     join_before_host: false,
     jbh_time: 0,
     mute_upon_entry: false,
     watermark: false,
     use_pmi: false,
     approval_type: 2,
     audio: 'voip',
     auto_recording: 'none',
     enforce_login: false,
     enforce_login_domains: '',
     alternative_hosts: '',
     close_registration: false,
     show_share_button: false,
     allow_multiple_devices: false,
     registrants_confirmation_email: true,
     waiting_room: true,
     request_permission_to_unmute_participants: false,
     registrants_email_notification: true,
     meeting_authentication: false,
     encryption_type: 'enhanced_encryption',
     approved_or_denied_countries_or_regions: { enable: false } } }

I certainly booked 3meetings, but the script responsed the information that was 1st one of 3 meetings.
(and Due to the JWT has s time limit, I should generate token
every time)
I solute that two problems.

Hi @zoom42,

Thanks for reaching out about this, and happy to help out.

As a first step, can you clarify what the error is that you’re running into? Are you receiving an error message or are you getting unexpected results in the API response?

In regards to the token, please note that you can adjust the expiration time by navigating to your JWT app, click on the Credentials tab, select “View JWT Token” and selecting Other to enter a custom expiration date:
image

Let me know if this helps!

Best,
Will

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.