Start Meeting by Host or Co-Host for Zoom SDK version sdk_5.10.3.6470

Hi I would like to start meeting as HOST or Co-Host Zoom SDK version sdk_5.10.3.6470
There are 2 methods as per documentation

(inner) StartMeeting(meetingnum, directshareappwndhandle, customer_key, isvideooff, isaudiooff, isdirectsharedesktop) → {Number}

In the above methods how can I generate customer_key and get directshareappwndhandle values?

(inner) StartMeetingWithOutLogin(userid, usertoken, zoomaccesstoken, username, zoomusertype, meetingnum, vanityid, directshareappwndhandle, customer_key, isdirectsharedesktop, isvideooff, isaudiooff) → {Number}

In the above methods how can I get userid, usertoken, zoomaccesstoken from Zoom SDK without using OAuth API ?

And incase if I want to ask member to login to zoom via this electron application the old API I see
login(username, password ) is deprecated what is the alternate method?

How can I achieve the functionality of Start Meeting by Host or Co-Host ?

Thank you
Nirav Desai

Hi @niravd ,

Users will not be able to login via username and password anymore.

For StartMeetingWithoutLogin, you need to access Zoom API to get the username and ZAK (Zoom AccessToken)

Hi @chunsiong.zoom
thank you for the response.
I would like to know
Which all methods / API are there in zoomsdk which validates me as a host for the meeting, also please let me know the mandatory parameters for those apis.

Thanks,
Nirav

There are 2,

For Host, you will need to use the START type of methods
https://marketplacefront.zoom.us/sdk/meeting/electron/module-zoom_meeting.html#~StartMeeting
https://marketplacefront.zoom.us/sdk/meeting/electron/module-zoom_meeting.html#~StartMeetingWithOutLogin

hope that helps

Thank you for your response @chunsiong.zoom

for using this method

https://marketplacefront.zoom.us/sdk/meeting/electron/module-zoom_meeting.html#~StartMeeting
how can I get customer_key and get directshareappwndhandle values?

Thank you,
Nirav Desai

Hi team I am waiting for the response for above query.

I have read the documentation, in documentation its mentioned

customer_key : The customer key that need the app intergrated with sdk to specify. The SDK will set this value when the associated settings are turned on

Kindly provide me detail explanation and example how to do it.

Thank you
Nirav Desai

Hi Nirav,

Here’s some follow up on the previously ask queries.

  1. Users will not be able to sign in directly using their email and password.
    They should be able to login via
  • SSO
  • JWT Token

For JWT Token, you can either use

  • OAuth API or
  • Server to server OAuth

Customer Key should be an optional field
For directshareappwndhandle , you should pass in the electron window handle, which electron’s native API should provide you

Hi, @chunsiong.zoom

Thank you for the response, we are working on the above solution provided and reviewing it from our end. We will get back to you incase any further assistance required.

Thank You
Nirav Desai

1 Like

Hi @chunsiong.zoom As per my understanding for the entire flow.

  1. We need to enable Server to server OAuth

As mentioned in the documentation user-oauth-with-the-meeting-sdk

To start Zoom meetings and webinars on the Meeting SDK with a Zoom user’s ZAK token:

  1. Choose an OAuth flow

I can choose Server to server OAuth (SSO)
using the api https://zoom.us/oauth/authorize
Response we get : authorization code

  1. Get the user’s ZAK token

Using this API [GET https://api.zoom.us/v2/users/me/token?type=zak) and passing the authorization code we get above as Bearer {{authorization code}}
Response we get : “token”: “{{zak_token}}”

  1. Pass the ZAK token to the Meeting SDK.

Passing the token in StartMeetingWithOutLogin
usertoken : ? (Need your advice what is expected here)
zoomaccesstoken : zak_token
username : "Any String "
zoomusertype : ZoomUserType_SSO
meetingnum : meeting_number

Is my understanding above correct ?
If Not please guide me.
If Yes please check the queries below and advice.

And the meeting starts if the member has start meeting permission.

  1. What will happen if the meeting is already started and calling the StartMeetingWithOutLogin method?
  2. What is are the behaviour if the user does not have permission to Start Meeting and we use the StartMeetingWithOutLogin method?

Thank you,
Nirav Desai

Hi Nirav,

The flow of getting ZAK token via Server to Server OAuth is correct.

For this method StartMeetingWithOutLogin

usertoken should be the user ID. if i’m not mistaken, you can either use email or id.
sample of what it looks like below from my own testing account

image

For the zoomusertype, you should be look at SDK_UT_LOGIN or 101

Question: What will happen if the meeting is already started and calling the StartMeetingWithOutLogin method?

Answer: You will join the meeting as a participant

Question: What is are the behaviour if the user does not have permission to Start Meeting and we use the StartMeetingWithOutLogin method?

Answer: You should get a prompt that you do not have permission to start the meeting. In this scenario, the user will not join the meeting as a participant as well.

https://marketplacefront.zoom.us/sdk/meeting/electron/module-zoom_meeting.html#.StartMeetingWithOutLogin#~StartMeetingWithOutLogin

1 Like

Hi @chunsiong.zoom Thank you for the quick response

  1. I am not able to find which endpoint / how I will get the user data containing id, first_name, last name as shown in Screenshot.

  2. Is there any other end point to identify if the user has permission to start the meeting?
    So only to the appropriate user with start meeting permission I can use the StartMeetingWithOutLogin method and other I can just join the meeting.

Thanks

you need to call the /users/user@example.com/token?type=zak&ttl=7200 endpoint if you already know the email address of the user

for endpoint to identify host, you can call the meeting api to check who is the host and alternative host

Hi @chunsiong.zoom thank you for the response It will be helpful if you can send me the /users/user@example.com/token?type=zak&ttl=7200 and meeting api documentation link.

For better understanding.

@niravd

Here’s the API docs for user token
https://marketplace.zoom.us/docs/api-reference/zoom-api/methods/#operation/userToken

Here’s the API docs for meeting details
https://marketplace.zoom.us/docs/api-reference/zoom-api/methods/#operation/meeting

1 Like

Thank you @chunsiong.zoom for the reply we will work on the solution provided above and get back to you incase any queries.

Hi @chunsiong.zoom
for the above mentioned scenario to Authorise should I create SSO or OAuth App

https://marketplace.zoom.us/develop/create

The users using my app wont be part of my zoom account licence, i.e any member with the personal zoom account can be my application user,

Also in this case how will the user authorisation (handshake of information from my app with Zoom oauth) done.

Thanks

Hi @chunsiong.zoom

Hope you are doing well,
I am trying to pass this API for OAuth for user authorization
GET api
https://zoom.us/oauth/authorize?response_type=code&client_id=7lstjK9NTyett_oeXtFiEQ&redirect_uri=https://example.com

Replacing my client_id and redirect_uri

But I am not getting the expected response, Attached the screenshot taken from Postman

Request your response for the same.

Thanks,
Nirav

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