# Zoom C# wrapper

**URL:** <https://devforum.zoom.us/t/zoom-c-wrapper/12771>\
**Category:** API and Webhooks\
**Created:** [April 12, 2020, 1:44pm UTC](https://devforum.zoom.us/t/zoom-c-wrapper/12771 "2020-04-12T13:44:41Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![frank](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/frank/32/4891_2.png) [@frank](https://devforum.zoom.us/u/frank)\
**Post date:** [April 12, 2020, 1:44pm UTC](https://devforum.zoom.us/t/zoom-c-wrapper/12771/1 "2020-04-12T13:44:41Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![carson.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/carson.zoom/32/785_2.png) [@carson.zoom](https://devforum.zoom.us/u/carson.zoom)\
**Post date:** [April 14, 2020, 1:54am UTC](https://devforum.zoom.us/t/zoom-c-wrapper/12771/2 "2020-04-14T01:54:35Z")

</div>

Hi Frank,

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

```auto
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](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](https://zoom.github.io/zoom-sdk-windows/class_i_meeting_audio_controller.html#a46ffad1f9a811c713086ac4663df2744)

Hope this helps. Thanks!

---

<div class="post-metadata">

**Author:** ![frank](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/frank/32/4891_2.png) [@frank](https://devforum.zoom.us/u/frank)\
**Post date:** [April 16, 2020, 5:17pm UTC](https://devforum.zoom.us/t/zoom-c-wrapper/12771/3 "2020-04-16T17:17:43Z")

</div>

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](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

---

<div class="post-metadata">

**Author:** ![carson.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/carson.zoom/32/785_2.png) [@carson.zoom](https://devforum.zoom.us/u/carson.zoom)\
**Post date:** [April 16, 2020, 7:37pm UTC](https://devforum.zoom.us/t/zoom-c-wrapper/12771/4 "2020-04-16T19:37:30Z")

</div>

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. 🙂 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](https://marketplace.zoom.us/docs/api-reference/introduction)

Hope this helps. Thanks!

---

<div class="post-metadata">

**Author:** ![frank](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/frank/32/4891_2.png) [@frank](https://devforum.zoom.us/u/frank)\
**Post date:** [April 16, 2020, 11:18pm UTC](https://devforum.zoom.us/t/zoom-c-wrapper/12771/5 "2020-04-16T23:18:04Z")

</div>

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](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

---

<div class="post-metadata">

**Author:** ![tommy](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/tommy/32/72769_2.png) [@tommy](https://devforum.zoom.us/u/tommy)\
**Post date:** [April 17, 2020, 7:57pm UTC](https://devforum.zoom.us/t/zoom-c-wrapper/12771/6 "2020-04-17T19:57:50Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![frank](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/frank/32/4891_2.png) [@frank](https://devforum.zoom.us/u/frank)\
**Post date:** [April 18, 2020, 4:14pm UTC](https://devforum.zoom.us/t/zoom-c-wrapper/12771/7 "2020-04-18T16:14:50Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![tommy](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/tommy/32/72769_2.png) [@tommy](https://devforum.zoom.us/u/tommy)\
**Post date:** [April 20, 2020, 9:30pm UTC](https://devforum.zoom.us/t/zoom-c-wrapper/12771/8 "2020-04-20T21:30:17Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![DeveloperBot](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/developerbot/32/12632_2.png) [@DeveloperBot](https://devforum.zoom.us/u/DeveloperBot)\
**Post date:** [August 21, 2020, 8:28pm UTC](https://devforum.zoom.us/t/zoom-c-wrapper/12771/9 "2020-08-21T20:28:14Z")

</div>

Closed on August 21, 2020, 8:28pm UTC


