rhsong
November 7, 2020, 7:02pm
1
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
rhsong
November 11, 2020, 2:13am
5
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
rhsong
November 12, 2020, 4:31am
7
Thank you.
I resolved that issue.
have a nice day.
Happy to hear it, @rhsong !
rhsong
November 16, 2020, 8:19am
9
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…
rhsong
November 16, 2020, 8:36am
11
A meeting is created with +9 hours.
will.zoom
(Will)
November 17, 2020, 5:41pm
12
Hi @rhsong ,
Are you creating the meeting with a start time using local time or UTC/GMT?
The response will be reflected as follows:
Thanks,
Will
rhsong
November 18, 2020, 12:06am
13
Hi @will.zoom ,
I have resolved the issue
Thanks your advice.
will.zoom
(Will)
November 18, 2020, 9:20pm
14
Hi @rhsong — glad to hear it!
system
(system)
Closed
December 19, 2020, 7:20am
15
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.