Zoom C# wrapper

I have been experimenting with the C# wrapper (on Visual Studio).
I found the IUserInfoDotNetWrap and its “IsAudioMuted” property.
Would this object have a method to mute the user?
Would there be an example of how it is used?
Thank you
Frank

Hi Frank,

Sure, you may use the following interface to mute a user:

SDKError CMeetingAudioControllerDotNetWrap::MuteAudio(unsigned int userid, bool allowUnmuteBySelf)

(https://github.com/zoom/zoom-c-sharp-wrapper/blob/master/zoom_sdk_c_sharp_wrap/meeting_audio_dotnet_wrap.cpp#L112)

The C# wrapper is calling the interfaces that are available in Windows SDK so you may find more information in Windows SDK’s reference: https://zoom.github.io/zoom-sdk-windows/class_i_meeting_audio_controller.html#a46ffad1f9a811c713086ac4663df2744

Hope this helps. Thanks!

Thank you Carson. Very Helpful. Knowing that it was somewhere in there, I found it here:

CZoomSDKeDotNetWrap.Instance.GetMeetingServiceWrap().GetMeetingAudioController().MuteAudio(id, r)

You appear to be the author of this C# wrapper. I am using [zoom_sdk_demo] (https://github.com/zoom/zoom-c-sharp-wrapper/tree/master/zoom_sdk_demo) as a guide. Is there a possibility to get access to the meeting without joining? or at least without displaying the Zoom user interface when this app joins?
Thank you again.
Frank

Hi Frank,

Thanks for the reply. In fact, I am not the author of the C# wrapper, I am just the one who uploaded them. :slight_smile: May I inquire what is the “get access to the meeting without joining” you are referring to? If you would like to join a meeting but do not want to show the meeting UI, you may consider using the Custom UI. Or if you would like to get some info of an ongoing meeting, you may also consider using the Zoom REST API to get some info:https://marketplace.zoom.us/docs/api-reference/introduction

Hope this helps. Thanks!

1 Like

Hi Carson
Thank you for your response and suggestions.
The REST API is what I wanted to use. But somehow, I keep getting the error “Invalid access token”, while I am using the token that Zoom generated for me.
Here is the code I am using (php):

================================================
protected function sendRequest($data) {
$request_url = ‘https://api.zoom.us/v2/users/me/meetings’;
$token = $token; // copied from the token generator at
echo $token."
";
$headers = array(
'Authorization : Bearer ’ . $token,
‘Content-Type : application/json’,
‘Accept : application/json’
);
$postFields = json_encode($data);
$ch = curl_init();
curl_setopt($ch, CURLOPT_HTTPHEADER, $headers);
curl_setopt($ch, CURLOPT_RETURNTRANSFER,1);
curl_setopt($ch, CURLOPT_URL, $request_url);
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS, $postFields);
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
$response = curl_exec($ch);
$err = curl_error($ch);
curl_close($ch);
if(!$response){
return $err;
}
return json_decode($response);
}

Can you spot anything I should change?

Thank you for your help
Frank

Hey @frank,

If you are using a JWT Token, can you please try regenerating the secret key and de activating and re activating the app and trying again?

Thanks,
Tommy

Hello Tommy;
Thank you for your response.
I deactivated the app and re-activated it.
I regenerated “Secret” and got a new JWT token from my zoom account.
I still get “Invalid access token” when I execute the query.
Any suggestions?
Frank

Hey @frank,

Please private message me your Zoom account # and the email used to create the JWT App and we will refresh the cache.

Thanks,
Tommy