How to generate api access token using jwt token in android client sdk

Login user schedule meetings as host,and share screen or create conference as host,record meeting etc
how can do this ,i am trying but not get success,have any steps for that or which token required for that.
i am confuse zoom token and zoom access token

zoom-sdk-android-5.7.6.1918

Description
A clear and concise description of what the question is.

Error
The full error message or issue you are running into.

Which App Type (OAuth / Chatbot / JWT / Webhook)?
Knowing the endpoint/s can help us to identify your issue faster. Please link the ones you need help/have a question with.

Which Endpoint/s?
Knowing the API endpoint/s can help us to identify your issue faster. Please link the ones you need help/have a question with.

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

  1. Request URL / Headers (without credentials) / Body
  2. See error

Screenshots (If applicable)
If applicable, add screenshots to help explain your problem.

Additional context
Add any other context about the problem here.

Hi @gms,

To clarify, are you trying to generate a token to call one of our API endpoints, are are you trying to generate a token for use with the Android SDK? Let me know if you can provide a few more details.

Thanks!
Will

i am using zoom client meeting sdk in my android app and created SDK app
for app key and secret
in a my app instant meeting and joining meetings running successful
now create meeting or schedule meeting required token ,so i am using jwt and API

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

Thanks for confirming, @gms!

To create a Meeting, you can use our Create Meeting API and authorize your request with a JWT token, as you suggested.

To generate a JWT token programmatically, you can follow our guide here:

You may find it helpful to leverage one of the pre-built libraries for JWT token generation available on https://jwt.io as well.

Let me know if this helps!

Thanks,
Will

1 Like

Hi Sir,
Thank You…for your reply.

Hi Sir,
JWT token generated successfully using SDK key and secret
and then using this token creating meeting.
Platform: Android Studio
Language :java
i am passing this token as a Header parameter in api like,

Authorization: Bearer jwt token
Content-Type: application/json

and other parameters of Create Meeting using POST Method

POST /users/{userId}/meetings

but getting NULL Response

Hi Sir,
Please Reply

Hi Sir,
Please Reply.

Hi @will.zoom,
Please Reply.

Hi @will.zoom,
i am trying get userId using api,but here also getting blank response

Hi @will.zoom,
not understand what to do now,can you please help me.
create meeting api also getting blank response.

Hi @will.zoom ,
JWT token generated successfully using SDK key and secret
and then using this token creating meeting.
Platform: Android Studio
Language :java
i am passing this token as a Header parameter in api like,

Authorization: Bearer jwt token
Content-Type: application/json

and other parameters of Create Meeting using POST Method

POST /users/{userId}/meetings

but getting NULL Response

Hi @will.zoom,
i am trying get userId using api,but here also getting blank response
not understand what to do now,can you please help me.
create meeting api also getting blank response.

Thank You

you may use /me context

Hi @codeleter,
Thank You for your reply
me parameter also used,but getting blank response.

Hi @gms,

To clarify, you will need to use your API Key and Secret to generate a JWT token for use with the Create Meeting API. It sounds like you might be using your SDK credentials instead:

JWT token generated successfully using SDK key and secret
and then using this token creating meeting.

Thanks,
Will

Hi @will.zoom,
i am trying both API key and secret and SDK key secret.but getting null response

Hi @will.zoom,
I think its right ,i am using android meeting sdk
initializing sdk using SDK key and secret.
and using zoom API for create meeting using jwt token

Thank You

Hi @will.zoom,
please reply

Hi @will.zoom,
as you suggested , i am used API key and secret for generating JWT Token
and used in create meeting api but getting null exception
Please Reply ASAP

Thank You