Replies: 4 comments
-
|
The Therefore, it's perfectly normal for properties such as the token expiration date, access token, refresh token, etc. to contain null values ("Nothing" in VB.NET) as you have shown in your code example. |
Beta Was this translation helpful? Give feedback.
-
|
Thank you for responding so quickly! Thank you for the clarification. Is there a class that will accept my credentials and return a token in ZoomNet or is that done via some other way?
Thank you!
|
Beta Was this translation helpful? Give feedback.
-
|
The ZoomNet client is designed to take care of token management for you and also, it is designed to raise an event to notify you when a new token is obtained if that's something you are interested in. Here's an example that shows how you would specify the logic you want to execute whenever a token is obtained or refreshed: var connectionInfo = new OAuthConnectionInfo(clientId, clientSecret, refreshToken, accessToken,
(newRefreshToken, newAccessToken) =>
{
Environment.SetEnvironmentVariable("ZOOM_OAUTH_REFRESHTOKEN", newRefreshToken, EnvironmentVariableTarget.User);
Environment.SetEnvironmentVariable("ZOOM_OAUTH_ACCESSTOKEN", newAccessToken, EnvironmentVariableTarget.User);
});In this example, I am updating two environment variables to preserve the refresh token as well as the access token. Of course, this logic can be tailored to match your needs. What this means is that you shouldn't need to manually obtain a new token, you simply let ZoomNet take care of it for you. |
Beta Was this translation helpful? Give feedback.
-
|
Thank you for getting me on the right track!!
|
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
I need to change an win form application from JWT to the new Server to Server OAuth. I am using ZoomNet version v0.46.0 and have the following vb.net code 4.8 framework. I have set up a Server to Server application on Zoom and acquired the client id, Account id and Client secret and entered all the information into the variables. I get a token when testing using Postman with the information from Zoom. However, when I try the following code I get no errors but no token is returned. Any help is greatly appreciated!
When I debug print ZoomConnInfo I see the following.
Beta Was this translation helpful? Give feedback.
All reactions