I want create a meeting in c#(jwt)

Description
Hello.

I trying the create a meeting use the JWT API.

So I need advice to WFC and C#

Please see below

C#
public ActionResult ZoomToken()
{
var tokenString = {JWT Token};
var client = new RestClient(“https://api.zoom.us/v2/users/rhsong@besthc.co.kr/meetings ”);
var request = new RestRequest(Method.POST);
request.AddHeader(“content-type”, “application/json”);
request.AddHeader(“authorization”, String.Format(“Bearer {0}”, tokenString));
request.AddParameter(“application/json”, “{\“topic\” : \“TEST\”,\“type\” : \“2\”,\“start_time\” : \“2020-11-05T10:00:00Z\”,\“timezone\”:\“Asia/Seoul\”,\“agenda\”:\“test\”,\“settings\”:{\“host_video\”:\“true\”,\“mute_upon_entry\”:\“true\”,\“approval_type\”:\“1\”,\“audio\”:\“both\”,\“auto_recording\”:\“none\”}}”, ParameterType.RequestBody);

IRestResponse response = client.Execute(request);

}

I have used the above sources such as WFC and console.

But it didn’t work (host session closed error occurred)

I am c# environment of dotnet4.0.

Please tolk to me for advice.

Hey @rhsong,

Have you had a chance to use our embedded Postman tool? You’ll find this under each endpoint:

You can use the code generation tab to format each request specific to your needs.

Let me know if this helps,
Will

Hi.
I have tried using the postman tool.
The results is transmitted normally.
Let me know what’s wrong to C#

C# occurred error is next blow:
“THE UNDERLYING CONNECTION WAS CLOSED: AN UNEXPECTED ERROR OCCURRED ON A SEND”

Hi @rhsong,

Thanks for confirming. It sounds like this is likely related to your code or environment if you’re able to send the request from Postman without an issue. Have you tried using the C# snippet directly generated by the Postman code function? I might recommend also doing a quick StackOverflow search—in checking quickly from my end, it sounds like this could be related to your TLS protocol.

Thanks,
Will

Thank you.
I resolved that issue.

have a nice day.

Happy to hear it, @rhsong! :slight_smile:

Hello.
I have one question.

I used the C# and tried POST JWT Token.
I get the log :

But, the reserved date for create a room is 11PM on November 26th.

I can’t understand do that…

A meeting is created with +9 hours.

Hi @rhsong,

Are you creating the meeting with a start time using local time or UTC/GMT?
image

The response will be reflected as follows:
image

Thanks,
Will

Hi @will.zoom,

I have resolved the issue

Thanks your advice.

:slight_smile:

Hi @rhsong — glad to hear it!

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