Share via

How to send a Zoom invitation through Visual Studio Desktop application

Simon 491 Reputation points
2024-05-07T01:36:59.0233333+00:00

I found the following API code:

Dim token =

   JObject.Parse(System.IO.File.ReadAllText(ConfigurationManager.AppSettings("TokenFilePath")))

'Dim client = New RestClient($"https://api.zoom.us/v2/users/me")

Dim client = New RestClient("https://api.zoom.us/v2/users? 

status=active&page_size=30&page_number=1")

Dim request = New RestRequest(Method.[GET])

request.AddHeader("content-type", "application/json")

request.AddHeader("authorization", $"Bearer {token("access_token").ToString()}")

System.Net.ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls Or 

SecurityProtocolType.Tls11 Or SecurityProtocolType.Tls12

Dim respons As IRestResponse = client.Execute(request)

'Response.Cookies.Add(respons.Cookies)

Dim dta = String.Format(ConfigurationManager.AppSettings("AuthJwtUrl"), 

ConfigurationManager.AppSettings("ClientId"), ConfigurationManager.AppSettings("RedirectUrl"))

Response.Redirect(dta)

However, Visual Studio is generating errors when using this code.

What is the correct code to use when one wants to send Zoom invitations through Visual Studio?

Thank you

Developer technologies | Visual Studio | Other
Developer technologies | Visual Studio | Other

A family of Microsoft suites of integrated development tools for building applications for Windows, the web, mobile devices and many other platforms. Miscellaneous topics that do not fit into specific categories.


Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.